WARNING: Can’t mass-assign these protected attributes:

Solution

add this to your model: attr_accessible :attribute1, :attribute2

(replace the attributes with your own)