On Apr 26, 4:48 pm, Darren Strom <[email protected]>
wrote:
> Basically using
>
> and elevators.booked_date = ?, params[:booked_date] is causing only
> errors.
>
> Any advise, I truely appreciate it.
>
much like the :conditions option requires either a string, or an
array containing a string and the parameter values (or a hash, but
that's irrelevant here), you need to either pass a single string to
find_by_sql or an array, ie Foo.find_by_sql(["some sql", param1,
param2])
Fred
(tip for next time: describe what errors you get rather than just
saying it isn't working)
> Thanks in advance.
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---