I have the following URL  the dist lat lng all can have a decimal
point in them..    I saw a really old post that suggested to use the
map with a requirements list like in the rout statement.   Well it
doesn;t parse it correctly..  anyone care to correct the regex?
this script returns a json object so google maps can put entries on
the map..


http://www.domain.com/search/1/5.2/47.5678/-122.006/


map.search '/search/:type/:dist/:lat/:lng', :controller =>
'search', :action => 'search',
                                              :requirements => { :lat
=> /.*/ ,:lng => /.*/,:dist => /.*/ }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to