Custom Nifty Generators using lib
Directory
Import Gem List
- mysql2 : mysql connector
- nifty-generators : nifty generator
- kaminari : pagination
- brakeman : Security Scanner
- bootstrap v4 : front-end framework
Additional
config/initializers/utf8mb4.rb # For Conflict Encoding
Preparation
$ cp config/database.yml.sample config/database.yml # if Use mysql
File List
Action On Controller
lib/templates/nifty/scaffold/actions/*.rb
# Alwalys redirect to index path
Controller File
lib/templates/nifty/scaffold/controller.rb
# Support `Strong Parameter`
View File
lib/templates/nifty/scaffold/views/erb/*.html.erb
# Design bootstrap
Full documentation
The Documentation is at https://github.com/ryanb/nifty-generators
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This Code is available as open source under the terms of the MIT License.