strange compile error

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

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

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