Model name "Query" doesn't work with rails 3? -


i using rails 3.0.3 , have model named query. when call "all" or "find" on query application (i calling user model) says

"nomethoderror (undefined method `all' activerecord::attributemethods::query:module):" 

as checked in rails there module query in

activerecord::attributemethods::query`   

in:

activerecord/lib/active_record/attribute_methods/query.rb: 

but if call console, works fine.

any help, information?

thanks , regards, pravin.

query reserved word. isn't listed in official list of reserved words, rails finding conflicting file. change model name workaround.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -