Re: Database saving empty records

Jeffrey L. Taylor
Fri, 10 Jul 2009 12:55:22 -0000

Quoting Whiplash
<danapellerin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>
> 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?
>

What about attr_protected or attr_accessible in the model?

HTH,
  Jeffrey