Create! Syntax

Hey All,

Two questions.

Firstly, what is the difference between create and create!

I see that create is document in the api

What is the difference between the two of these functions and where is the create! function defined.


What are the differences between these two calls?

a) SomeModel.create!{ :property_a => ‘value’, :property_b => ‘value 2’ }
b) SomeModel.create!({ :property_a => ‘value’, :property_b => ‘value 2’ })

Thanks a lot for the help!

create! is here:

I find to be the best tool for browsing the Rails