1 class SiteController < ApplicationController
2 before_filter :authorize_web
3 before_filter :require_user, :only => [:edit]
6 way = Way.find(params[:id])
9 node = way.way_segments.first.segment.from_node
10 redirect_to :controller => 'site', :action => 'index', :lat => node.latitude, :lon => node.longitude, :zoom => 6