]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/concerns/session_methods.rb
Use resourceful routes for terms view/accept/decline
[rails.git] / app / controllers / concerns / session_methods.rb
index 45cf0d9439607642725c088feb5517215e232524..2cfc4e82311e642635308ad32717fa3c0664ff63 100644 (file)
@@ -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