views:

37

answers:

1

I know how to loop a combo box by using this:

<%= f.collection_select(:category_id , Category.all, :id, :name, {:prompt => false})%> 

and now, I can do radio box using the radio box help:

  radio_button("user", "receive_newsletter", "yes")

But how can I do this in a form helper? thank you.

+2  A: 

Doesn't

<%= f.radio_button :receive_newsletter, "yes" %>

work?

j.