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
有帮助吗?

解决方案

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

= f.radio_button :budget_type, 'budget', :checked => true
| Budget Account
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top