I have a simple model:
class Reply < ActiveRecord::Base
attr_accessible :body
belongs_to :post
end
In my controller, I have a simple
I had this same issue, but with Rails 4. The issue happens when you have params[] in update_attribute. In Rails 4 with strong parameters
@reply.update_attributes(params[reply_params])
should be
@reply.update_attributes(reply_params)
I'm not to familiar with Rails 3 but this should be the issue:
@reply.update_attributes(params[:reply])
should be
@reply.update_attributes(:reply)