Displaying 1 result from an estimated 1 matches for "invalid_except".
2006 Jul 26
4
create! should return an Active Record object no matter what
I just using the bang versions of save and create after seeing Rick
(technoweenie) use it in his code. I like it much better.
I have a problem with the create! method. It doesn''t return an Active
Record object if it fails. That means you can''t display the errors on
the object. Whats the point than?
Here is a broken example that should work.
def create
@product =