simple_form materialize

Rails gem which includes SimpleForm configuration generator and custom inputs for MaterializeSass users

13
16
Ruby

SimpleForm::Materialize

This gem includes a generator for SimpleForm configuration with MaterializeCSS. It also includes custom inputs for materialize.

Installation

Add this line to your application’s Gemfile:

gem 'simple_form-materialize'

And then execute:

$ bundle

Or install it yourself as:

    $ gem install simple_form-materialize

Usage

Run the SimpleForm configuration generator:
rails g simple_form:materialize:install

The generator will currently create an initializer and add it to your application as well as add a mixin to SimpleForm::Inputs::Base which is used by Character Count.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/patricklindsay/simple_form-materialize. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Further works

  • Add specs
  • Add custom inputs
  • Move SimpleForm::Inputs::Base mixin into gem rather than generating it (?)

License

The gem is available as open source under the terms of the MIT License.