I am trying to put records into the database. Here is what I did at
the console..

?>
user = User.new(:name => "David", :hobby => "swimming", :age => 10)

?> user = User.new(:name => "David", :hobby => "swimming", :age => 10)
=> #<User id: nil, name: "David", hobby: "swimming", age: 10, email:
nil, credit_card: nil, created_at: nil, updated_at: nil>
>> user.save
user.save
=> false
>>


It doesn't seem to allow me to put new records into the database. Why
would it do this? Is anyone else having this problem?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to