Question

I want to close a f.radio-button tag so that I can add some text after a radio button.

I have tried the following below, but the / is giving me an error so I don't think this is the proper way to do it.

= f.radio_button :budget_type, 'budget', :checked => true/ Budget Account

How do I close my f.radio_button tag so that it looks something similar to this:

= <%= f.radio_button :budget_type, 'budget', :checked => true %>Budget Account
Was it helpful?

Solution

You can use | at the beginning of line to indicate text.

= f.radio_button :budget_type, 'budget', :checked => true
| Budget Account
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top