aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails_generator/generators/components')
-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