Jumpstart customizes scaffolds to make it easier and quicker to develop your application.
If you'd like a resource to be shared across a Account, you can scope your controllers to the current account so the resources are shared between users in the associated account.
Every user has a personal account that's only usable by themselves, so you can easily associate resources to accounts and still have private resources to a user.
Make sure to add
account:references when generating your models.
You should also add
acts_as_tenant :account to your model if you would like to have acts_as_tenant enforce multitenancy on the model. This is optional and you can read the Multitenancy docs for more information on this.
You should also ensure your model's Turbo Streams broadcast methods are scoped to the account so only users associated to your account receive the broadcast. You can scope the broadcast methods by passing account in the method
broadcast_prepend_later_to account, :my_new_model. In your views, you will also need ensure Turbo Streams is subscribed to the correct stream scoped to the account
turbo_stream_from current_account, :my_new_model
The scaffold generator has been customized to include a default design for scaffolds. You can customize this as you like to bring your own design.
Jumpstart includes an addition to the scaffold generator to automatically include new scaffolds into the navbar for convenience.
Scaffolds use Pagy to paginate scaffolds by default. Pagination is also themed to match the template.