Every repository with this icon (
Every repository with this icon (
Template Overrides
Every template in ActiveScaffold can be overridden with your own. Just find the template (anything in ActiveScaffolds’ frontends/default/views directory) you want to customize and copy it to your app/ folder. If you want to override the template for all controllers, copy it into the app/views/active_scaffold_overrides/ directory. If you want to override the template for a specific controller, copy it into that controller’s directory (e.g. app/views/users/ for the UsersController).
Wrapping Templates
If want to wrap a template, you can create a file in one of the same two places with the same name, but somewhere in the template make a call to render :super.
Global Wrapping Example: Copy from vendor/plugins/active_scaffold/frontends/default/views/list.html.erb to app/views/active_scaffold_overrides/list.html.erb, then wrap the call to render :super in whatever content you want.
<!-- Whatever above --> <%= render :super %> <!-- Whatever below -->
Template Render Order
Rendering your template overrides will wrap in this order:
- Wrapping Template
app/views/controller_name/template.html.erb - ActiveScaffold Global Template Override
app/views/active_scaffold_overrides/template.html.erb - ActiveScaffold Frontend
vendor/plugins/active_scaffold/frontends/default/views/template.html.erb






