Skip to content

Instantly share code, notes, and snippets.

View brennandunn's full-sized avatar

Brennan Dunn brennandunn

View GitHub Profile
def locate
# @map = GMap.new("map_div")
# @map.control_init(:large_map => false, :map_type => true)
# @map.center_zoom_init([lat,lng],4)
@target_zip = params[:locate][:zip]
if @target_zip =~ /\d+/
@store_list = Store.find(
:all, :origin => @target_zip,
:order => 'distance',
def set_title(page_title)
content_for(:title) { "- #{page_title}" }
content_for(:h1) { page_title }
end