Reputation: 1555
I've been following rails casts #221, i author using find_by_somefield!
with "!". What does that mean in context of ActiveRecord find condition?
Upvotes: 0
Views: 67
Reputation: 1815
see the below link. You will get the answer.
http://rorguide.blogspot.in/2011/06/active-record-finder-methods-dynamic.html
Upvotes: 1
Reputation: 2013
It raise an ActiveRecord::RecordNotFound error.
reference: rails guide
Upvotes: 2