Make the /export URL work.

This commit is contained in:
Tom Hughes 2008-04-17 17:47:15 +00:00
parent 52a6df0548
commit 45a77397f3
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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>