Re: Database saving empty records

Frederick Cheung
Fri, 10 Jul 2009 13:07:35 -0000

On Jul 10, 6:56 am, Whiplash
<danapelle...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> 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?
>
How about showing the code that isn''t working ?

Fred
> 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