model.where(:name => "string) INTERNAL ERROR!!! No attribute exists!
December 17, 2012 7:48 AM Subscribe
In Rails, I'm using a model to represent a database view. I'm getting an error when I try to search on an attribute. (gist
posted by czytm to Computers & Internet (8 answers total)
Not sure why this is happening, especially the fact that model.where(:attribute => "string") has an error but model.where("attribute = ?", "string") does not. Anyone run into this before? I haven't used a model to represent a view before, only to represent a table.