Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Black-Mac:turbocis89 Charles$ script/console
- Loading development environment (Rails 2.0.991)
- >> Spec.partial_updates
- => true
- >> User.partial_updates
- => true
- >> @user = User.find_by_screen_name('vince888')
- => #<User id: 1, screen_name: "vince888", password: "vince888", email: "vince@vince888.com", created_at: "2008-05-15 12:35:12", updated_at: "2008-05-15 13:03:38", authorization_token: nil>
- >> @user.spec.city_of_birth
- => "Wichita"
- >> @user.spec.city_of_birth = 'Charleston'
- => "Charleston"
- >> @user.spec.changes
- => {"city_of_birth"=>["Wichita", "Charleston"]}
- >> @user.spec.save
- => false
- >> @user.spec.save(false)
- => true
- >> @user.spec.changes
- => {}
- >> @user.spec.city_of_birth
- => "Charleston"
Add Comment
Please, Sign In to add comment