class Rails::Generators::ResourceTemplateGenerator
Public Instance Methods
create_resource_template_files()
click to toggle source
# File lib/rails/generators/resource_template_generator.rb, line 8 def create_resource_template_files base_path = File.join("app/views", class_path, file_name) empty_directory base_path [:index, :show].each do |action| @action = action @path = File.join(base_path, filename_with_extensions(action)) template filename_with_extensions(action), @path end end
Protected Instance Methods
format()
click to toggle source
# File lib/rails/generators/resource_template_generator.rb, line 21 def format nil end
handler()
click to toggle source
# File lib/rails/generators/resource_template_generator.rb, line 25 def handler :rabl end