Use a param to trigger export rather than a separate action
In site/_resize.html.erb and site/_search.html.erb, a params[:action] conditional is used to include code that should only run on the index action -- but it should be run on the export action too. Cleanest fix is to eliminate that action entirely.
This commit is contained in:
parent
6358f8190d
commit
8ec415b060
4 changed files with 4 additions and 16 deletions
|
@ -102,7 +102,7 @@ OpenStreetMap::Application.routes.draw do
|
|||
match '/copyright' => 'site#copyright', :via => :get
|
||||
match '/history' => 'changeset#list', :via => :get
|
||||
match '/history/feed' => 'changeset#feed', :via => :get, :format => :atom
|
||||
match '/export' => 'site#export', :via => :get
|
||||
match '/export' => 'site#index', :export => true, :via => :get
|
||||
match '/login' => 'user#login', :via => [:get, :post]
|
||||
match '/logout' => 'user#logout', :via => [:get, :post]
|
||||
match '/offline' => 'site#offline', :via => :get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue