1 class SiteController < ApplicationController
2 before_filter :authorize_web
3 before_filter :require_user, :only => [:edit]
7 @tags = WayTag.find(:all, :limit => 11, :conditions => ["match(v) against (?)", params[:query][:query].to_s] )
11 way = Way.find(params[:id])
14 node = way.way_segments.first.segment.from_node
15 redirect_to :controller => 'site', :action => 'index', :lat => node.latitude, :lon => node.longitude, :zoom => 6