No commit activity in last 3 years
No release in over 3 years
Override default rails generators to use bootstrap classes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
 Project Readme

Gem Version Maintainability Build Status

Simple::Bootstrap::Forms

Simply override the default generators to use bootstrap classes in rails without any dependencies that will be out of date because the maintainer hasn't updated their gem in 4 years.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem 'simple-bootstrap-forms'

or

gem 'simple-bootstrap-forms', github: 'andrewkress/simple-bootstrap-forms'

And then execute:

$ bundle install
$ rails g simple_bootstrap_forms

5 files will be generated:

  • config/initializers/simple_boostrap_forms.rb (Config to suppress generating scaffold.scss)
  • lib/templates/erb/scaffold/_form.html.erb (Simple override to the standard generator)
  • lib/templates/erb/scaffold/index.html.erb (Simple override to the standard generator)
  • lib/templates/erb/scaffold/show.html.erb (Simple override to the standard generator)
  • app/views/shared/_error.html.erb (Shared error partial to keep code DRY)

Contributing

Open a pull request or issue. Mainly for personal use, but if you enjoy, feel free to contribute.

License

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