#965 ✓resolved
Tim Griffin

Symbol ":registered" causes .where clause to fail with 'can't convert Array into String'

Reported by Tim Griffin | September 20th, 2011 @ 05:11 PM | in Hobo 1.3 (Rails 3)

For some reason, using the current Hobo master version (as of 18 Sep 2011) under Rails 3.0.7, this statement

   @instruments = Document.where(:state => [:registered])

causes the error

   can't convert Array into String

Instead, I find I have to do this, and all is well.

   where("state IN (?)", ['registered'])

It seems to be something particular with the word "registered". Any ideas?

Tim

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Pages