magic_hat wrote:
> Hi, Marnen. Thanks for your thoughts. I have GeoRuby and spatial-
> adapter installed, but I'm not seeing anything in the documentation
> that looks similar to what I'm trying to do.

Well, your first query just seems to be constructing a Point, so you 
could probably use one of the constructors on Point for that.

I *think* that your second query shouldn't be hard either, but let me 
check the docs myself before I say that.

And both queries are subject to SQL injection.  Never use string 
interpolation like this in your queries -- always parameterize!

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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