diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/plugin/USAGE')
-rw-r--r-- | railties/lib/rails_generator/generators/components/plugin/USAGE | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/plugin/USAGE b/railties/lib/rails_generator/generators/components/plugin/USAGE index 55e35be595..e858ada9b9 100644 --- a/railties/lib/rails_generator/generators/components/plugin/USAGE +++ b/railties/lib/rails_generator/generators/components/plugin/USAGE @@ -7,6 +7,9 @@ Description: The generator creates a plugin directory in vendor/plugins that includes both init.rb and README files as well as lib, task, and test directories. + It's also possible to generate stub files for a generator to go with the + plugin by using --with-generator + Example: ./script/generate plugin BrowserFilters @@ -15,4 +18,16 @@ Example: vendor/plugins/browser_filters/init.rb vendor/plugins/browser_filters/lib/browser_filters.rb vendor/plugins/browser_filters/test/browser_filters_test.rb - vendor/plugins/browser_filters/tasks/browser_filters_tasks.rake
\ No newline at end of file + vendor/plugins/browser_filters/tasks/browser_filters_tasks.rake + + ./script/generate plugin BrowserFilters --with-generator + + This will create: + vendor/plugins/browser_filters/README + vendor/plugins/browser_filters/init.rb + vendor/plugins/browser_filters/lib/browser_filters.rb + vendor/plugins/browser_filters/test/browser_filters_test.rb + vendor/plugins/browser_filters/tasks/browser_filters_tasks.rake + vendor/plugins/browser_filters/generators/browser_filters/browser_filters_generator.rb + vendor/plugins/browser_filters/generators/browser_filters/USAGE + vendor/plugins/browser_filters/generators/browser_filters/templates/
\ No newline at end of file |