Displaying 1 result from an estimated 1 matches for "engine_host".
2009 Aug 06
13
Redirect after login
...though when
the login is successful.
The part i believe i need to edit;
class JobController < ApplicationController
before_filter :verify_login, :except => [:index, :login_to_engine]
before_filter :engine, :except => [:index, :login_to_engine]
def verify_login
unless session[:engine_host]
redirect_to :controller => ''job'', :action => ''index''
return false
end
return true
end
which is in my controllers directory.
Any help appreciated!
--
Posted via http://www.ruby-forum.com/.