OK.. I will give it a try!

I think i have to redo all the commands and add data all over again! 
Currently i get:

$ rails console
Loading development environment (Rails 3.1.3)
irb(main):001:0> User.find(1)
  ←[1m←[36mUser Load (31.2ms)←[0m  ←[1mSELECT "users".* FROM "users" 
WHERE "users"."id" = ? LIMIT 1←[0m  [["id", 1]]
ActiveRecord::RecordNotFound: Couldn't find User with id=1



But how come coming out of the sandbox console deletes data from the 
database? Database values should be persistent right? That is the whole 
idea of a DB, or am i missing something here?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to