]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/messages_controller.rb
Rename user_controller to users_controller
[rails.git] / app / controllers / messages_controller.rb
index 54850d403de9feb035ce5b5a91ec5d611c9f0cd8..cebf5d95bf6b0ae39987cdb43c6fe2c075189d72 100644 (file)
@@ -54,7 +54,7 @@ class MessagesController < ApplicationController
       render :action => "new"
     else
       flash[:notice] = t ".wrong_user", :user => current_user.display_name
-      redirect_to :controller => "user", :action => "login", :referer => request.fullpath
+      redirect_to :controller => "users", :action => "login", :referer => request.fullpath
     end
   rescue ActiveRecord::RecordNotFound
     @title = t "messages.no_such_message.title"
@@ -71,7 +71,7 @@ class MessagesController < ApplicationController
       @message.save
     else
       flash[:notice] = t ".wrong_user", :user => current_user.display_name
-      redirect_to :controller => "user", :action => "login", :referer => request.fullpath
+      redirect_to :controller => "users", :action => "login", :referer => request.fullpath
     end
   rescue ActiveRecord::RecordNotFound
     @title = t "messages.no_such_message.title"