Source

RubyLearning / ProjectTrak / vendor / plugins / rubyamf / generators / rubyamf_scaffold / USAGE

Description:
    Scaffolds a RubyAMF resource: model, migration, and controller. The
 	resource is ready to use as a RubyAMF service.

    Pass the name of the model, either CamelCased or under_scored, as the first
    argument, and an optional list of attribute pairs.

    Attribute pairs are column_name:sql_type arguments specifying the
    model's attributes. Timestamps are added by default, so you don't have to
    specify them by hand as 'created_at:datetime updated_at:datetime'.

    You don't have to think up every attribute up front, but it helps to
    sketch out a few so you can start working with the resource immediately.

    For example, `rubyamf_scaffold post title:string body:text published:boolean`
    gives you a model with those three attributes, a controller that handles
    the find/save/destroy.

Examples:
    `./script/generate rubyamf_scaffold post` # no attributes
    `./script/generate rubyamf_scaffold post title:string body:text published:boolean`
    `./script/generate rubyamf_scaffold purchase order_id:integer amount:decimal`
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.