No release in over a year
This separates the generator of the html.erb.views from the model/controller generation.
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

RailsViewGenerator

This gem adds a Rails generator that creates just the view file which would normally generated by a rails generate scaffold command.

Installation & Usage

bundle add rails_view_generator, group: :development

bundle install

rails generate view ModelName field_name:field_type field_name2:field_type2 ...

This generator utilizes the same look-up for the .html.erb.tt files as the original scaffold generator, which can be found in the rails/generators/erb/scaffold/templates.

You can customize these views by copying them to lib/templates/erb/scaffold and modifying them as needed.

Relevant Links:

Changelog

  • 0.1.0: Initial release

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/coezbek/rails_view_generator.