Permalink
Browse files

Fixed comments in boolean_radio_input.

Signed-off-by: Justin French <justin@indent.com.au>
  • Loading branch information...
1 parent a904eb9 commit 87647f1177360db2c799110f65c3ec58a0d264de @josevalim josevalim committed with justinfrench Mar 7, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/formtastic.rb
View
@@ -708,19 +708,20 @@ def boolean_select_input(method, options)
# <li class="boolean_radio required" id="post_public_input">
# <fieldset><legend><span>make this sucker public?<abbr title="required">*</abbr></span></legend>
# <ol>
- # <li>
+ # <li class="true">
# <label for="post_public_true">
# <input id="post_public_true" name="post[public]" type="radio" value="true" /> Yeah!
# </label>
# </li>
- # <li>
+ # <li class="false">
# <label for="post_public_false">
# <input id="post_public_false" name="post[public]" type="radio" checked="checked" /> Nah!
# </label>
# </li>
# </ol>
# </fieldset>
# </li>
+ #
def boolean_radio_input(method, options)
options[:true] ||= I18n.t('yes', :default => 'Yes', :scope => [:formtastic]).send(@@label_str_method)
options[:false] ||= I18n.t('no', :default => 'No', :scope => [:formtastic]).send(@@label_str_method)

0 comments on commit 87647f1

Please sign in to comment.