Make the /export URL work.
This commit is contained in:
parent
52a6df0548
commit
45a77397f3
2 changed files with 8 additions and 1 deletions
|
@ -2,6 +2,10 @@ class SiteController < ApplicationController
|
|||
before_filter :authorize_web
|
||||
before_filter :require_user, :only => [:edit]
|
||||
|
||||
def export
|
||||
render :action => 'index'
|
||||
end
|
||||
|
||||
def goto_way
|
||||
way = Way.find(params[:id])
|
||||
|
||||
|
@ -12,5 +16,4 @@ class SiteController < ApplicationController
|
|||
redirect_to :back
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -180,5 +180,9 @@ by the OpenStreetMap project and it's contributors.
|
|||
|
||||
window.onload = handleResize;
|
||||
window.onresize = handleResize;
|
||||
|
||||
<% if params['action'] == 'export' %>
|
||||
<%= remote_function :url => { :controller => 'export', :action => 'start' } %>
|
||||
<% end %>
|
||||
// -->
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue