Michael Furmaniuk wrote:
[...]
>  I thought maybe the double quotes was somehow converting the
> integer values to strings again 

That is part of the problem, but not the whole problem. Remove the 
double quotes.

> but I got a SQL error instead so I don't
> think that is it either.

Did you read what the SQL error is telling you?  '{...@passes}' is not a 
legitimate integer, and the DB doesn't know what to do with it.  Ruby is 
not Perl, and so the "{...@passes}" construct in your query string will not 
do any variable interpolation, but will rather send '{...@passes}' 
literally to the DB.  If you want variable interpolation in Ruby, you 
must put a # before the braces.

Anyway, why are you building a query string like that?  That's 
ActiveRecord's job -- just pass it a hash of attributes.  As it stands 
right now, you're essentially not using ActiveRecord.  Either use it 
properly or remove it from your app.

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