Skip to content

Conversation

@carloslopes
Copy link
Member

This way is possible to render help and error messages for standalone control_groups.

Example:

<%= f.control_group :skill_level, label: { text: 'Skill' }, help: 'This is important!' do %>
  <%= f.radio_button :skill_level, 0, label: 'Novice', inline: true %>
  <%= f.radio_button :skill_level, 1, label: 'Intermediate', inline: true %>
  <%= f.radio_button :skill_level, 2, label: 'Advanced', inline: true %>
<% end %>

This way is possible to have help and error messages for standalone
control_groups
@carloslopes
Copy link
Member Author

The commit 4aae6c3 fixed a strange bug that was happening when i was trying to set an help to a standalone control-group

I couldn't reproduce the bug on tests, it was really weird

@potenza
Copy link
Member

potenza commented Jan 28, 2013

Sorry I haven't had a chance to look at this yet. I've been swamped with a new product launch at work. Will get a chance in the next few days...

@carloslopes
Copy link
Member Author

no problem!

potenza added a commit that referenced this pull request Jan 30, 2013
Help tag rendered by #control_group method
@potenza potenza merged commit 0cfd15f into bootstrap-ruby:master Jan 30, 2013
@carloslopes carloslopes deleted the control-group-help branch February 6, 2013 16:04
carloslopes added a commit that referenced this pull request Feb 18, 2014
Add support for radio_buttons_collection and check_boxes_collection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants