Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Generator

floere edited this page · 4 revisions

Generates view model class, spec, and views. Use as follows:

Simple

script/generate view_models <view model class name>

Example:

script/generate view_models User

With partials for render_as

script/generate view_models <view model class name> <partials for render_as, space separated>

Example:

script/generate view_models User compact extensive list_item table_item
Something went wrong with that request. Please try again.