]> git.openstreetmap.org Git - rails.git/commitdiff
Make the /export URL work.
authorTom Hughes <tom@compton.nu>
Thu, 17 Apr 2008 17:47:15 +0000 (17:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 17 Apr 2008 17:47:15 +0000 (17:47 +0000)
app/controllers/site_controller.rb
app/views/site/index.rhtml

index 767220c7905ed0be8bae70bf324a07f6c1c77be7..172d5da9cc9b3149a3bc3f2e441083f9d6eaaac3 100644 (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
index 46bc3bdd7ee80f9b2ba013a88a5a0873f5d97b19..94b24debf54d41162759c182f069ab03e29d8108 100644 (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>