Created
February 28, 2009 19:56
-
-
Save makoto/72077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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