0

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.

1 Answer 1

3

Doesn't

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

work?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.