문제

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