Guest User

Untitled

a guest
May 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. robski@falcon:/var/www/photos$ ruby script/console
  2. Loading development environment (Rails 2.3.8)
  3. >> cat=Photo.find_by_filename "cat.jpg"
  4. => #<Photo id: 1, filename: "cat.jpg">
  5. >> cat.filename="Cat.jpg"
  6. => "Cat.jpg"
  7. >> cat.update
  8. NoMethodError: Attempt to call private method
  9. from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/attribute_methods.rb:240:in `method_missing'
  10. from (irb):3
  11. >>
Add Comment
Please, Sign In to add comment