ruby on rails - Active Admin after login redirect to admin site not requested url -
i implemented active admin in rails 3.2 application. problem when request restricted resource application redirect me login page after login redirect user admin section of site. want redirect after login requested url. how can resolve issue. seek below alter not work.
class applicationcontroller < actioncontroller::base protect_from_forgery private def after_sign_in_path_for(resource) user_path(resource) end end class applicationcontroller < actioncontroller::base protect_from_forgery private def after_sign_in_path_for(resource) stored_location_for(resource) || root_path end end
ruby-on-rails ruby-on-rails-3 devise activeadmin
No comments:
Post a Comment