Displaying 1 result from an estimated 1 matches for "m002269".
2009 Aug 19
2
Create! Syntax
Hey All,
Two questions.
Firstly, what is the difference between create and create!
I see that create is document in the api
http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002269
What is the difference between the two of these functions and where is the
create! function defined.
Also,
What are the differences between these two calls?
a) SomeModel.create!{ :property_a => ''value'', :property_b => ''value 2'' }
b) SomeModel.create...