# Newbie question, I have seen create! what does it mean

**URL:** <https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937>\
**Category:** Ruby\
**Created:** [February 5, 2010, 1:08am UTC](https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937 "2010-02-05T01:08:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noppanit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@noppanit](https://www.ruby-forum.com/u/noppanit)\
**Post date:** [February 5, 2010, 1:08am UTC](https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937/1 "2010-02-05T01:08:55Z")

</div>

Hi All,

I have some newbie question, and I have been searching all over google  
for a long time. Could some of you please explain me why do we have to  
use ! instead of normal method

like  
@stock = Stock.create! params[:stock]

what does the “!” actually mean?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![noppanit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@noppanit](https://www.ruby-forum.com/u/noppanit)\
**Post date:** [February 5, 2010, 1:11am UTC](https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937/2 "2010-02-05T01:11:50Z")

</div>

Hi –

On Fri, 5 Feb 2010, Noppanit wrote:

> Hi All,
> 
> I have some newbie question, and I have been searching all over google  
> for a long time. Could some of you please explain me why do we have to  
> use ! instead of normal method
> 
> like  
> @stock = Stock.create! params[:stock]
> 
> what does the “!” actually mean?

It’s just a character in the method name, but it has a special  
conventional significance:

[http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist](http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist)

(The Rails source code, on the whole, does not follow the convention,  
which I’ve always thought was too bad.)

David
