Nested scaffold generator for Rails 4.2 and 5
MIT License
A scaffold command that generates a set of perfectly working nested resource for Rails 4.2 and 5.
4.2, 5.0, 5.1, 5.2
Put this line in your Gemfile:
gem 'nested_scaffold'
Then bundle.
% rails generate nested_scaffold PARENT_NAME/NAME [field:type field:type] [options]
(Expects PARENT model to exist in advance)
While "Post" model exists,
% rails g nested_scaffold post/comment name:string content:text
This will create:
Basically same as the original scaffold.
Pull requests are welcome on GitHub at https://github.com/amatsuda/nested_scaffold
Copyright (c) 2010 Akira Matsuda. The gem is available as open source under the terms of the MIT License.