Scaffolding

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.

Team-scoped CRUD

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.

Features

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 belongs_to and has_many adjustments.
  • A controller scoped to Current.team.
  • An admin controller for the admin area.
  • Views following the main theme.
  • Automatic handling of belongs_to association including a form select.
  • Fixtures.
  • Controller and system tests.