brain.rbinstance_missing
With session_lifetime you can set after how much time of inactivity your session should expire, you can execute an action when the session expires, and you can set where to redirect_to after session expiry.
Example
class ApplicationController << ActionController::Base
expires_session :time => 2.hours, :redirect_to => ‘/login’
protected
def on_expiry
flash[:notice] = “Your session has been expired, and you have been logged out.”
end
end
<br />git://github.com/DefV/session_lifetime.git<br /></code
| Variable | Value |
|---|---|
| GITHUB | |
| WWR | { :working_with_rails => 'http://www.workingwithrails.com/person/5844-elad-meidar' } |
| IRC | { 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#mootools' ]} |
| SKYPE | eladmeidar |
You're seeing this error because I think it is funny.