Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 648 Bytes

simple.md

File metadata and controls

18 lines (15 loc) · 648 Bytes

Installation

  1. Add it to your Gemfile:
    gem 'simple_form'
  2. Install the gem.
    bundle install
  3. Generate the Simple Form initializer file by running the following command:
    rails generate simple_form:install

By default, Simple Form uses the Bootstrap CSS classes for styling. To disable this, add the following line:

# config/initializers/simple_form.rb
config.default_form_class = ''

Stimulus

<%= f.association :book_format, label: false, input_html: { data: { controller: 'book-format-select' } } %>