Quickstart Accounts Authentication Teams Billing Subscriptions DevExp Scaffolding Admin Blog Deployment Kamal

Scaffolding

Business Class takes the regular scaffolding you know and love and applies it to its team-scoped approach.

Team resources

To use the new scaffolding, you just replace the scaffold generator with a crud one:

$ bin/rails g crud Model title:string user:references

By using this generator this for will be generated automatically:

  • A route within the team resource.
  • A migration with a reference to the team.
  • 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.