Rails scaffolding is the framework wow effect since the early days. Business Class takes the regular scaffolding you know and love and applies it to its team-scoped approach.
To use the new scaffolding, you just replace the scaffold generator with a crud one:
$ bin/rails g crud Model title:string user:references
The original Rails scaffold generator is still present and untouched.
By using the generator you'll get this for free:
- A route within the team resource.
- A migration with a reference to the team.
- A model with
- A controller scoped to
- Views following the main theme.
- Automatic handling of
belongs_toassociation including a form select.
- Controller and system tests.