[Rails] Re: SQL Syntax Errors
brez! !!
jbresnik at gmail.com
Tue Apr 18 05:48:25 GMT 2006
Scott Quiring wrote:
> Tim,
>
> I'm not actually trying to insert "#<Quote:0x248a32c>" into the
> database. What I'm trying to do is take some other text ("foo" for
> example) from a Web form and insert that into the database. The
> problem is that somewhere along the way, "foo" is being converted
> into "#<Quote:0x248a32c>".
>
> "foo" survives at least until I send it into the ActiveRecord
> "create" method.
>
> Thanks for your help.
>
> Scott
You should post up what your form looks like as well -
'#<Quote:0x2485aac>' is a string representation of an instance of an
object, i.e. you passing the object itself, instead one of the object's
attributes. I think - can't tell without the form tho.
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list