[Rails] Re: Redirect after login

2009-08-20 Thread Dan Sinclair
BUMP BUMP BUMP -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsub

[Rails] Re: Redirect after login

2009-08-10 Thread Dan Sinclair
Dan Sinclair wrote: > Sijo Kg wrote: >> Hi >> >> There you have to use >> >>and return >> >> as I said earlier.. >> Please read2.2.13 Avoiding Double Render Errors from >> http://guides.rubyonrails.org/layouts_and_rendering.html >> >> Sijo > > It still doesn't work!! >

[Rails] Re: Redirect after login

2009-08-07 Thread Dan Sinclair
Sijo Kg wrote: > Hi > > There you have to use > >and return > > as I said earlier.. > Please read2.2.13 Avoiding Double Render Errors from > http://guides.rubyonrails.org/layouts_and_rendering.html > > Sijo It still doesn't work!! It says that it's redirected in Termin

[Rails] Re: Redirect after login

2009-08-07 Thread Sijo Kg
Hi There you have to use and return as I said earlier.. Please read2.2.13 Avoiding Double Render Errors from http://guides.rubyonrails.org/layouts_and_rendering.html Sijo -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: Redirect after login

2009-08-07 Thread Dan Sinclair
Sijo Kg wrote: > Hi >And what is wrong now? Did you ensure if session[:engine_host] is not > set it enters to unless session[:engine_host].end >For example write some puts inside unless > session[:engine_host]..end > > And check if that happens according to what you specify >

[Rails] Re: Redirect after login

2009-08-07 Thread Sijo Kg
Hi And what is wrong now? Did you ensure if session[:engine_host] is not set it enters to unless session[:engine_host].end For example write some puts inside unless session[:engine_host]..end And check if that happens according to what you specify Sijo -- Posted via http://ww

[Rails] Re: Redirect after login

2009-08-07 Thread Dan Sinclair
Sijo Kg wrote: > Hi > Please do like > Application controller as it is > > class ApplicationController < ActionController::Base > helper :all # include all helpers, all the time > protect_from_forgery # See ActionController::RequestForgeryProtection > for details > > # Scrub sensitive

[Rails] Re: Redirect after login

2009-08-06 Thread Sijo Kg
Hi Please do like Application controller as it is class ApplicationController < ActionController::Base helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryProtection for details # Scrub sensitive parameters from your log # filter

[Rails] Re: Redirect after login

2009-08-06 Thread Dan Sinclair
Sijo Kg wrote: > Hi >If it is needed by more controllers not only jobs controller you can > move it to application.rb and the filter too..Does it call the filter? > > Sijo the before_filter only appears in the job controller. this is what i have: #--# # applic

[Rails] Re: Redirect after login

2009-08-06 Thread Sijo Kg
Hi If it is needed by more controllers not only jobs controller you can move it to application.rb and the filter too..Does it call the filter? Sijo -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subs

[Rails] Re: Redirect after login

2009-08-06 Thread Dan Sinclair
Sijo Kg wrote: > redirect_to :controller => 'job', :action => 'index' and return false what file should this be in? my ApplicationController of JobController? I tried it individually in both, but to no avail... Thanks for the speedy response! -- Posted via http://www.ruby-forum.com/. --~--~--

[Rails] Re: Redirect after login

2009-08-06 Thread Sijo Kg
redirect_to :controller => 'job', :action => 'index' and return false -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, se

[Rails] Re: Redirect after login

2009-08-06 Thread Sijo Kg
Hi > def verify_login > unless session[:engine_host] > redirect_to :controller => 'job', :action => 'index' > return false > end > > return true > end Can u change it to def verify_login unless session[:engine_host] redirect_to :controller => 'j