Sha256: 01aaac1515623786e8d078815b0c598daed6e6c870b085824c9e3d0e8eb34a8c

Contents?: true

Size: 1.08 KB

Versions: 79

Compression:

Stored size: 1.08 KB

Contents

# Namespacing in Bullet Train

## The `Account` Namespace for Controllers and Views
Bullet Train comes preconfigured with an `Account` namespace for controllers and views. This is the place where Super Scaffolding will, by default, put new resource views and controllers. The intention here is to ensure that in systems that have both authenticated resource workflows and public-facing resources, those two different facets of the application are served by separate resource views and controllers. (By default, public-facing resources would be in the `Public` namespace.)

## Alternative Authenticated Namespaces
In Bullet Train applications with [multiple team types](/docs/teams.md), you may find it helpful to introduce additional controller and view namespaces to represent and organize user interfaces and experiences for certain team types that vary substantially from the `Account` namespace default. In Super Scaffolding, you can specify a namespace other than `Account` with the `--namespace` option, for example:

```
bin/super-scaffold crud Event Team name:text_field --namespace=customers
```

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
bullet_train-1.6.20 docs/namespacing.md
bullet_train-1.6.19 docs/namespacing.md
bullet_train-1.6.18 docs/namespacing.md
bullet_train-1.6.17 docs/namespacing.md
bullet_train-1.6.16 docs/namespacing.md
bullet_train-1.6.15 docs/namespacing.md
bullet_train-1.6.14 docs/namespacing.md
bullet_train-1.6.13 docs/namespacing.md
bullet_train-1.6.12 docs/namespacing.md
bullet_train-1.6.11 docs/namespacing.md
bullet_train-1.6.10 docs/namespacing.md
bullet_train-1.6.9 docs/namespacing.md
bullet_train-1.6.8 docs/namespacing.md
bullet_train-1.6.7 docs/namespacing.md
bullet_train-1.6.6 docs/namespacing.md
bullet_train-1.6.5 docs/namespacing.md
bullet_train-1.6.4 docs/namespacing.md
bullet_train-1.6.3 docs/namespacing.md
bullet_train-1.6.2 docs/namespacing.md
bullet_train-1.6.1 docs/namespacing.md