diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-01-23 05:01:05 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-01-23 05:01:05 +0000 |
commit | 37fa17f55aceea87e6ae825e45ecb266b67e94d7 (patch) | |
tree | 99025f14b48626451faeb880c5141125d990f4d9 /railties/lib/rails_generator/generators/components/scaffold_resource/USAGE | |
parent | fee8856ff1bae12395a09b6effc1e5f751ad0e72 (diff) | |
download | rails-37fa17f55aceea87e6ae825e45ecb266b67e94d7.tar.gz rails-37fa17f55aceea87e6ae825e45ecb266b67e94d7.tar.bz2 rails-37fa17f55aceea87e6ae825e45ecb266b67e94d7.zip |
Add/Update usage documentation for script/destroy, resource generator and scaffold_resource generator. Closes #7092, #7271, #7267. [bscofield]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/scaffold_resource/USAGE')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold_resource/USAGE | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE b/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE index aa47491280..60e13c770f 100644 --- a/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE +++ b/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE @@ -25,11 +25,11 @@ Description: idea of adding just the baseline of what's needed to start really working with the resource. - Once the generator has run, you'll need to add a declaration to your - config/routes.rb file to hook up the rules that'll point URLs to this - new resource. If you create a resource like "scaffold_resource post", - you'll need to add "map.resources :posts" (notice the plural form) in - the routes file. Then your new resource is accessible from /posts. + The generator also adds a declaration to your config/routes.rb file + to hook up the rules that'll point URLs to this new resource. If you + create a resource like "scaffold_resource post", it will add + "map.resources :posts" (notice the plural form) in the routes file, + making your new resource accessible from /posts. Examples: ./script/generate scaffold_resource post # no attributes, view will be anemic |