a = Author.new(:name => "Test")
=> #<Author:0x34eaa54 @attributes={"name"=>"Test", "email"=>nil,
"created_at"=>nil}, @new_record=true>
>> a.save
=> false
>> a.errors
=> #<ActiveRecord::Errors:0x34e92f8 @base=#<Author:0x34eaa54
@errors=#<ActiveRecord::Errors:0x34e92f8 ...>, @attributes=
{"name"=>"Test", "modified_at"=>nil, "url"=>nil, "is_active"=>false,
"hashed_pass"=>nil, "email"=>nil, "created_at"=>nil},
@new_record=true>, @errors={"email"=>["can't be blank"]}>
>> a.save(false)
=> true
Zach Inglis
→ Blog -- http://www.zachinglis.com
→ Company -- http://www.lt3media.com
→ Portfolio -- http://portfolio.zachinglis.com
→ Web Designer → Print Designer → Identity Desginer → Ruby on
Rails developer → et plus.
→ AIM: zachinglis → MSN: zachinglis@hotmail.com → Others
available on request