Sha256: 7baded7035ba5ebddfce9cf9b16642093a0aed93540186e79aec00bcd80a13ab
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
Description: Scaffolds an entire resource, from model and migration to controller and views, along with a full test suite. The resource is ready to use as a starting point for your RESTful, resource-oriented application. Pass the name of the model (in singular form), 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, 'ava_rails post ' gives you a model with those three attributes, a controller that handles the create/show/update/destroy, forms to create and edit your posts, and an index that lists them all, as well as a map.resources :posts declaration in config/routes.rb. If you want to remove all the generated files, run 'script/destroy ava_rails ApplicationName CompanyName'. Examples: `./script/generate ava_rails application_name company_name`
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ava_rails_generator-0.0.3 | USAGE |
ava_rails_generator-0.0.2 | USAGE |