You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a worthy convenience method. It appears that the where just isn't evaluated when the first method is chained. I think it makes sense for this to be a convenience method, but there's also find_by that can take the attribute name and value and just return the single object if found.
When I run
Model.where(name: "confact").first..
it complains.I have to type:
Model.where(name: "confact").select.first...
do get it to work.The text was updated successfully, but these errors were encountered: