Parent

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 26
def available_views
  %(index edit show new)
end
handler() click to toggle source
# File lib/generators/haml/scaffold/scaffold_generator.rb, line 30
def handler
  :haml
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.