Looks like ruby is getting confused with the missing space between
"find_all" and the "[". You could put the implicit brackets
( ) in if
you like, and that should solve it too.
Douglas
2006/8/27, junkone1
<junkone1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:>
>
> >> Worklog.find_all["worklogs2stocksymbol=?",45],"id
DESC",15
> SyntaxError: compile error
> (irb):25: syntax error
> Worklog.find_all["worklogs2stocksymbol=?",45],"id
DESC",15
> ^
> from (irb):25
> from :0
>
> I am not sure what is wrong here. can someone explain.
> the worklogs2stocksymbol is defined as int4 in postgresql and i am using
> postgres-pr driver thro rails
> --
> View this message in context:
http://www.nabble.com/strange-compile-error-tf2172783.html#a6007659
> Sent from the RubyOnRails Users forum at Nabble.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---