passing a condition to Model.where to find records in rails -


i have instance in method this

@existinguser = user.where("trial_account_made_by = !nil? ") 

i want return users trial_account_made_by ( column in users table) not nil. how pass where?

try trial_account_made_by not null as:

@existinguser = user.where("trial_account_made_by not null") 

Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -