]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Tidy up a few details.
[rails.git] / app / controllers / browse_controller.rb
index dcc4cd3f31504291ef19f90b975903ad3c493c18..c35bb821a00e587b23da28457778faac762992b9 100644 (file)
@@ -1,32 +1,32 @@
 class BrowseController < ApplicationController
   before_filter :authorize_web  
   layout 'site'
+
   def way_view 
     begin
-      way = Way.find(params[:id])
+      @way = Way.find(params[:id])
      
-      @way = way
       @name = @way.tags['name'].to_s 
       if @name.length == 0:
        @name = "#" + @way.id.to_s
-      end      
+      end
+       
       @title = 'Way | ' + (@name)
-      
     rescue ActiveRecord::RecordNotFound
       render :nothing => true, :status => :not_found
     end
   end
+
   def node_view 
     begin
-      node = Node.find(params[:id])
+      @node = Node.find(params[:id])
      
-      @node = node
       @name = @node.tags_as_hash['name'].to_s 
       if @name.length == 0:
        @name = "#" + @node.id.to_s
-      end      
+      end
+       
       @title = 'Node | ' + (@name)
-      
     rescue ActiveRecord::RecordNotFound
       render :nothing => true, :status => :not_found
     end