]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces_controller.rb
Rename trace_controller to traces_controller
[rails.git] / app / controllers / traces_controller.rb
similarity index 98%
rename from app/controllers/trace_controller.rb
rename to app/controllers/traces_controller.rb
index 5eb9a0ff7c9622eeca5ed7f2da0258ebb0efea77..86de77706b0769491be4cc855701e7b9d7a8a241 100644 (file)
@@ -1,4 +1,4 @@
-class TraceController < ApplicationController
+class TracesController < ApplicationController
   layout "site", :except => :georss
 
   skip_before_action :verify_authenticity_token, :only => [:api_create, :api_read, :api_update, :api_delete, :api_data]
   layout "site", :except => :georss
 
   skip_before_action :verify_authenticity_token, :only => [:api_create, :api_read, :api_update, :api_delete, :api_data]
@@ -167,7 +167,7 @@ class TraceController < ApplicationController
     elsif current_user.nil? || @trace.user != current_user
       head :forbidden
     else
     elsif current_user.nil? || @trace.user != current_user
       head :forbidden
     else
-      @title = t "trace.edit.title", :name => @trace.name
+      @title = t ".title", :name => @trace.name
 
       if request.post? && params[:trace]
         @trace.description = params[:trace][:description]
 
       if request.post? && params[:trace]
         @trace.description = params[:trace][:description]
@@ -384,7 +384,7 @@ class TraceController < ApplicationController
   end
 
   def offline_warning
   end
 
   def offline_warning
-    flash.now[:warning] = t "trace.offline_warning.message" if STATUS == :gpx_offline
+    flash.now[:warning] = t "traces.offline_warning.message" if STATUS == :gpx_offline
   end
 
   def offline_redirect
   end
 
   def offline_redirect