The problem I’m having is with the method update_attributes. The code:
n is set to an Active Record object.
n = Notification.find(notification_id)
Then, n is updated with the hash notification_options.
n.update_attributes(notification_options)
The issue I’m having is when I
raise n.inspect
It shows the two fields are set to nil. Also, in the database the two fields are empty.
Why won’t it update the attributes?
Let me know if I need to be more specific.
This is because you’re using
attr_accessor, and notattr_accessible, I would guess. Please show us your Notification model.