I've seen some similar questions to this but I cannot find the answer.
I have a simple form that is supposed to save some values into the
database. However, when I call save, the record is saved with null
values instead of the values provided in the form.
As you can see by the following console output, the parameters are
being posted properly, but for some reason they are not being entered
into the database. I'm not doing any validations or anything else. I'm
also not receiving any errors.
What's the deal?
Processing MotorcyclesController#create (for 127.0.0.1 at 2009-07-09
22:27:34) [POST]
Parameters: {"model"=>"asdfsd", "cc"=>"1234", "commit"=>"Save",
"authenticity_token"=>"ed86db52751e22006b4af4050daa88d8b722685a",
"make"=>"dfad", "year"=>"1234"}
Motorcycle Create (0.3ms) INSERT INTO "motorcycles" ("model",
"cc", "created_at", "updated_at", "make", "year") VALUES(NULL, NULL,
'2009-07-10 05:27:34', '2009-07-10 05:27:34', NULL, NULL)
Rendering template within layouts/application
Rendering motorcycles/create
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---