code snippets

Creating a boolean radio button set while trying to build upon the source code samples in Beginning Rails book, but was having trouble with the radio buttons: selecting second one didn’t do anything, the first one would automatically get re-selected. Realized what the problem was: the label tags were messing me up. I needed to wrap each option (belonging to the radio group) in its own label tags. Duh!

 'create' do %>
Course ID:

User ID:




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s