[Rails] Re: Getting null value when it's assigned

2011-05-12 Thread joshnesbitt
This could be that you are trying to assign attributes that are protected from mass assignment. Try adding: attr_accessible :category_id ..to your article model. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, sen

[Rails] Re: Getting null value when it's assigned

2011-05-11 Thread pepe
I'm assuming the problem happens when creating new records. Can we see the new and create actions in your controller and the full form in the view? Also, are there any before/after/around filters and/or callbacks that could be affecting the behavior of the application? On May 10, 8:19 pm, "Tomas R