patricklindsay / simple_form-materialize

Rails gem which includes SimpleForm configuration generator and custom inputs for MaterializeSass users
MIT License
13 stars 16 forks source link

default length value is optional for radio button #3

Closed nakataka777 closed 8 years ago

nakataka777 commented 8 years ago

@patricklindsay hi. i try radio_button by this template. but, display Character counter in radio_button.

radiobutton

pls check.

patricklindsay commented 8 years ago

Thanks for the report.

I wouldn't say this was an issue, more of a personal preference. This seems to happen when using radio buttons for attributes with string or text type.

You can stop the character count from displaying (on a per attribute basis) by;

  = f.input :some_attribute, length: false

I would rather keep the character count displaying by default and override it in the above use case.

The Wrappers API

nakataka777 commented 8 years ago

@patricklindsay OK! Thank you for response:)