No commit activity in last 3 years
No release in over 3 years
Generate Rails Engines
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

rails-engine-generator¶ ↑

Stubs out a new engine plugin. Pass the engine name, either CamelCased or under_scored, as an argument. Pass –with-generator to add an example generator also.

This creates a plugin in vendor/plugins including an init.rb and README as well as standard plugin directories as well as app, config, and db directories.

Example¶ ↑

‘./script/generate engine Tickets`

creates a standard tickets plugin:

vendor/plugins/tickets/README
vendor/plugins/tickets/init.rb
vendor/plugins/tickets/install.rb
vendor/plugins/tickets/app
vendor/plugins/tickets/app/controllers
vendor/plugins/tickets/app/helpers
vendor/plugins/tickets/app/models
vendor/plugins/tickets/app/views
vendor/plugins/tickets/app/views/layouts
vendor/plugins/tickets/config
vendor/plugins/tickets/db
vendor/plugins/tickets/db/migrations
vendor/plugins/tickets/lib/tickets.rb
vendor/plugins/tickets/test/tickets_test.rb
vendor/plugins/tickets/tasks/tickets_tasks.rake

./script/generate plugin BrowserFilters –with-generator

creates a tickets generator also:

vendor/plugins/tickets/generators/tickets/tickets_generator.rb
vendor/plugins/tickets/generators/tickets/USAGE
vendor/plugins/tickets/generators/tickets/templates/

Copyright © 2009 Terry Schmidt. See LICENSE for details.