class ScaffoldView::Generators::InstallGenerator
Public Instance Methods
copy_template_file()
click to toggle source
# File lib/generators/scaffold_view/install_generator.rb, line 18 def copy_template_file # copy stylesheets directory "#{ui}/stylesheets", "vendor/assets/stylesheets/#{ui}" # copy templates %w(index show _form new edit).each do |template| copy_file "#{ui}/#{template}.html.erb", "lib/templates/erb/scaffold/#{template}.html.erb" end end