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:

Rating:

 Yes! 
 No!

Comments:




Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s