Skip to content

Instantly share code, notes, and snippets.

@makoto
Created February 28, 2009 19:56
Show Gist options
  • Select an option

  • Save makoto/72077 to your computer and use it in GitHub Desktop.

Select an option

Save makoto/72077 to your computer and use it in GitHub Desktop.
require 'rho/rhocontroller'
class GeoTimeLineController < Rho::RhoController
#GET /GeoTimeLine
def index
latitude = GeoLocation.latitude.to_s
longitude = GeoLocation.longitude.to_s
range = "25km"
question = "#{latitude},#{longitude}"
GeoTimeLine.ask(question)
require 'rhom'
p "Rhom::RhomDbAdapter::select_from_table 1"
p Rhom::RhomDbAdapter::select_from_table('object_values','*', :source_id => 13)
p "EOF |||||||||||||||"
sleep 10
p "Rhom::RhomDbAdapter::select_from_table 2"
p Rhom::RhomDbAdapter::select_from_table('object_values','*', :source_id => 13)
p "EOF |||||||||||||||"
@page = GeoTimeLine.find(object_id).first
if @page
p "@page.class #{@page.class} ::"
p "@page.methods #{@page.methods.join(',')} ::"
p "@page.inspect #{@page.inspect} ::"
p "@page.data"
@data = @page.data
p @data
@data
end
render :action => :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment