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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -