Sha256: f9992203c8412b797de43b2234d956da6003357cc9e2c723ed1be2c36c3f4a9b

Contents?: true

Size: 1.08 KB

Versions: 8

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` and controller and view namespace. 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

8 entries across 8 versions & 1 rubygems

Version Path
bullet_train-1.0.46 docs/namespacing.md
bullet_train-1.0.45 docs/namespacing.md
bullet_train-1.0.42 docs/namespacing.md
bullet_train-1.0.41 docs/namespacing.md
bullet_train-1.0.40 docs/namespacing.md
bullet_train-1.0.39 docs/namespacing.md
bullet_train-1.0.38 docs/namespacing.md
bullet_train-1.0.37 docs/namespacing.md