From: Tom Hughes Date: Thu, 17 Apr 2008 17:47:15 +0000 (+0000) Subject: Make the /export URL work. X-Git-Tag: live~7810^2~13 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/45a77397f3f6b97d671999c45abe4ad818955d65?hp=52a6df0548124a0dbb7fe8b5afa3ef5271327cf1 Make the /export URL work. --- diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 767220c79..172d5da9c 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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 diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 46bc3bdd7..94b24debf 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -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 %> // -->