Today I Learned

hashrocket A Hashrocket project

The third argument of radio_button_tag is checked!

Of course I should know this but I didn't, 3rd value of radio_button_tag is whether the input is checked or not.

radio_button_tag("name", "value", isChecked)


See More #rails TILs
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.