Ingoweiss Generators
A collection of generators
ingoweiss:scaffold
A scaffold generator. Presently there are only view differences to the standard Rails scaffold generator that allow the generator to be driven by the foam meta generator:
- ‘scope’ option (—scope=posts comments), adding support for deeply nested resources
- ‘skip_routes’ option (—skip-routes) for skipping the injection of routes into ‘config/routes.rb’
- controllers are using the Rails 3 ‘respond_with’ style
# Example usage:
rails generate ingoweiss:scaffold comments body:text --scope=posts
This will generate scaffold for a ‘comments’ resource at ‘/posts/123/comments’
Installation
gem install ingoweiss_generators
Copyright (c) 2010 Ingo Weiss, released under the MIT license