malparty / rails-generator-demo

Trying to create a custom generator for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails generator demo

Provide Rails generator that could help save time for repetitive actions. This is a POC to assess if using Rails generators can enhance our Rails template.

TODO

Test in a real project to overwrite the pre-build generators used by scaffold:

  • Controller using our ApplicationController, pundit authorization and NO details action, soft delete.
  • Adding the Pundit policy with default actions authorized and tests (given any user, it permits...)
  • Revise the resourse to implement the soft delete
  • Revise the views to use bootstrap

Keep it simple as the generator must be customized for each projects. The objective is to include a generator inside the new projects so that it allow people to quickly customize it.

Usage

WIP

License

This project is Copyright (c) 2023 and onwards Nimble. It is free software and may be redistributed under the terms specified in the LICENSE file.

About

Nimble logo

This project is maintained and funded by Nimble.

We ❤️ open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.

Want to join? Check out our Jobs!

About

Trying to create a custom generator for Rails


Languages

Language:Ruby 76.1%Language:HTML 17.7%Language:JavaScript 3.9%Language:CSS 2.3%