Generates views for existing ActiveRecord model passed as argument. No need to specify model attributes, it will pick them up from attr_accessible
Add this line to your application's Gemfile:
gem 'view_generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install view_generator
Example:
rails generate view Thing
This will create:
- 4 CRUD views for Thing model, based on Thing accessible attributes and on default template engine
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request