Your radio button parameter is being created outside of the project
structure. If you look at params
, you'll probably see
{:category => "your_category", :project => {...project params...}}
It is because you're using the radio_button_tag
instead of the regular form helper. Try this instead:
f.radio_button :category, category, :checked => (@category == category)
Also, as Justin said, make sure :category
is included in the project_params
in your controller.