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
Post a Comment