class Haml::Generators::ScaffoldGenerator
Public Instance Methods
copy_form_file()
click to toggle source
# File lib/generators/haml/scaffold/scaffold_generator.rb, line 17 def copy_form_file if options[:form_builder].nil? filename = filename_with_extensions("_form") template "_form.html.haml", File.join("app/views", controller_file_path, filename) end end
copy_view_files()
click to toggle source
# File lib/generators/haml/scaffold/scaffold_generator.rb, line 8 def copy_view_files available_views.each do |view| filename = filename_with_extensions(view) template "#{view}.html.haml", File.join("app/views", controller_file_path, filename) end end
Protected Instance Methods
available_views()
click to toggle source
# File lib/generators/haml/scaffold/scaffold_generator.rb, line 25 def available_views %w(index edit show new _index) end
handler()
click to toggle source
# File lib/generators/haml/scaffold/scaffold_generator.rb, line 29 def handler :haml end