aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-09-25 06:51:03 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-09-25 06:51:03 +0000
commite5a0a2732718bebf17e43bf817864561daeada3f (patch)
tree08c817af15660be1ce32d82e5c5554ed3e725308 /railties
parent148261a9efb03bcf14251866c162fedda0f193df (diff)
downloadrails-e5a0a2732718bebf17e43bf817864561daeada3f.tar.gz
rails-e5a0a2732718bebf17e43bf817864561daeada3f.tar.bz2
rails-e5a0a2732718bebf17e43bf817864561daeada3f.zip
scaffold_resource naming, fixes #6276
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5182 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold_resource/USAGE4
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE b/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE
index 5478b4ca12..d72db2103e 100644
--- a/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE
+++ b/railties/lib/rails_generator/generators/components/scaffold_resource/USAGE
@@ -2,7 +2,7 @@ Description:
Explain the generator
Example:
- ./script/generate resource_generator Thing
+ ./script/generate scaffold_resource Thing
This will create:
- what/will/it/create \ No newline at end of file
+ what/will/it/create
diff --git a/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb b/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb
index 919f682193..7ea80ea5ac 100644
--- a/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb
+++ b/railties/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb
@@ -121,7 +121,7 @@ class ScaffoldResourceGenerator < Rails::Generator::NamedBase
protected
# Override with your own usage banner.
def banner
- "Usage: #{$0} scaffold_resources ModelName"
+ "Usage: #{$0} scaffold_resource ModelName"
end
def scaffold_views
@@ -137,4 +137,4 @@ class ScaffoldResourceGenerator < Rails::Generator::NamedBase
ScaffoldAttribute.new(*attribute.split(":"))
end
end
-end \ No newline at end of file
+end