[Rails] malformed format string
Eric Hodel
drbrain at segment7.net
Thu Dec 30 08:23:33 GMT 2004
On 29 Dec 2004, at 23:25, Keith Donaldson wrote:
> I think I've got the SQL right ... it returns the expected results
> when query the db, but when I try to recreate this same query using
> rails I get the following error. I'm new to all of this, but do you
> have any idea what I might be doing wrong?
>
> ArgumentError in Dj#search_recording
>
> malformed format string - %'
Escape your % with %%, Rails uses sprintf (%) on the inside.
> /app/controllers/dj_controller.rb:11:in `search_recording'
> script/server:49
>
> Show framework trace
>
> lib/active_record/base.rb:671:in `%'
^^^
Your clue
--
Eric Hodel - drbrain at segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://one.textdrive.com/pipermail/rails/attachments/20041230/7cfb5c01/PGP.bin
More information about the Rails
mailing list