From 45a77397f3f6b97d671999c45abe4ad818955d65 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 17 Apr 2008 17:47:15 +0000 Subject: [PATCH] Make the /export URL work. --- app/controllers/site_controller.rb | 5 ++++- app/views/site/index.rhtml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 %> // --> -- 2.43.2