Use resourceful routes for terms view/accept/decline
This commit is contained in:
parent
44843c1dd7
commit
606b5c1b6a
15 changed files with 204 additions and 171 deletions
|
@ -48,7 +48,7 @@ module SessionMethods
|
|||
# - If they were referred to the login, send them back there.
|
||||
# - Otherwise, send them to the home page.
|
||||
if !user.terms_seen
|
||||
redirect_to :controller => :users, :action => :terms, :referer => target
|
||||
redirect_to account_terms_path(:referer => target)
|
||||
elsif user.blocked_on_view
|
||||
redirect_to user.blocked_on_view, :referer => target
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue