Rails 3 javascript sql query -



Rails 3 javascript sql query -

i have question querying sqlite database in on of rails 3 app:

the purpose of app locate user , show bunch of nearby locations.

the locations stored in sqlite , utilize javascript geolocate user , show current position. have longitude , latitude want check database nearby locations. how query database long/lat javascript values?

i can think of providing info server side .json , iterate trough javascript.

thanks in advance

you cannot access database straight javascript (assuming you're in browser), thought of providing info server side json approach any.

(yes improve suited comment, won't allow me yet :p)

javascript ruby-on-rails-3 sqlite3 geolocation

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -