]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/feature.html.erb
Rework to ensure views are named after the controller method name
[rails.git] / app / views / browse / feature.html.erb
index c3fadbe312e26a516fcb2d623f9bc3cf0a48dc75..6c94b0a9dfd50aa8dab39c5ec33611c29c4abd2e 100644 (file)
@@ -8,7 +8,7 @@
 <%= render :partial => @type, :object => @feature %>
 
 <div class='secondary-actions'>
 <%= render :partial => @type, :object => @feature %>
 
 <div class='secondary-actions'>
-  <%= link_to(t('browse.download_xml'), :controller => @type.pluralize, :action => "read") %>
+  <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
   &middot;
   &middot;
-  <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+  <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
 </div>
 </div>