I cannot explain it. You're not providing enough information about your environment and any error messages you may or may not be receiving.
Which part returns nil? Did you run this on the command line? user_instance = User.find(1) Did it return nil? If so, you probably don't have a user by the ID of 1 in your database. Adjust accordingly to fit your environment. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/m-fUx744LKkJ. 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.

