Updating Activerecord queries to rails 3.2 format : find(:all) to all -


i updating active record queries of rails project. have not been able find out how update when query is
foo.find(:all, :stuff, :id, :thing, @bar)

i know how handle regular.find(:all) or .find(:all, :conditions => {} (find(:first) , find(:all) deprecated) have not found on

if, example, model user, find users use:

user.all 

and specific conditions, use:

user.where(neck: "long") 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -