# Create! method\_missing?

**URL:** <https://www.ruby-forum.com/t/create-method-missing/114514>\
**Category:** Rails\
**Created:** [September 13, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/create-method-missing/114514 "2007-09-13T18:44:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [September 13, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/create-method-missing/114514/1 "2007-09-13T18:44:31Z")

</div>

So, all the documentation says I should be able to call #create! on an  
ActiveRecord, to do the same thing as #create, but raise an exception on  
validation failure.

But when I try this on any ActiveRecord::Base class, I seem to get an  
exception raised with method\_missing, saying there’s no create! method.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [September 13, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/create-method-missing/114514/2 "2007-09-13T22:12:40Z")

</div>

Jonathan R. wrote:

> So, all the documentation says I should be able to call #create! on an  
> ActiveRecord, to do the same thing as #create, but raise an exception on  
> validation failure.
> 
> But when I try this on any ActiveRecord::Base class, I seem to get an  
> exception raised with method\_missing, saying there’s no create! method.
> 
> Am I missing something?

Hey,

I have always used #save instead of #save!, and still can catch those  
validation errors!
