where is save_without_validation ?

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

Zach Inglis // LT3media wrote:

>> a.save(false)
=> true

What's wrong with calling save_without_validation? Is that

      /de-facto/ private?

validations involving unique table keys require lots of

       database hits, so saving without validation is faster,
       right?