ruby on rails - Trouble with setting custom controller redirect for devise -
i'm having trouble setting devise controllers. i've tried quite things nothing seems work. please not redirect me wiki, know it, have tried things without success.
in current situation, after login user redirected properly, after sign up, seems current_user not available.
so, question :
if have controller named town, how can redirect devise controller after successful login , successful signup ?
edit :
there seems kind of messing controllers. times, errors :
no route matches {:action=>"monster_attack", :controller=>"user/tavern"}
although user/tavern never specified, when login sometimes, redirection. if specify :controller => '/tavern', works ok. ideas ?
well following works me. given in rails 3 working devise model called "user", in routes.rb file:
devise_for :users namespace :user root :to => "town#show" end
hope helps.
Comments
Post a Comment