Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 588 Bytes
Stubs out a scaffolded controller and its views. Different from rails
scaffold_controller, it uses strong_parameters to whitelist permissible
attributes in a private method.
Pass the model name, either CamelCased or under_scored. The controller
name is retrieved as a pluralized version of the model name.
To create a controller within a module, specify the model name as a
path like 'parent_module/controller_name'.
This generates a controller class in app/controllers and invokes helper,
template engine and test framework generators.
Jump to Line
Something went wrong with that request. Please try again.