]> git.openstreetmap.org Git - rails.git/blob - app/controllers/site_controller.rb
172d5da9cc9b3149a3bc3f2e441083f9d6eaaac3
[rails.git] / app / controllers / site_controller.rb
1 class SiteController < ApplicationController
2   before_filter :authorize_web
3   before_filter :require_user, :only => [:edit]
4
5   def export
6     render :action => 'index'
7   end
8
9   def goto_way
10     way = Way.find(params[:id])
11
12     begin
13       node = way.way_nodes.first.node
14       redirect_to :controller => 'site', :action => 'index', :lat => node.latitude, :lon => node.longitude, :zoom => 6
15     rescue
16       redirect_to :back
17     end
18   end
19 end