controller_template: type: file template_path: <%= File.join(templates_directory_path, "app", "controllers", "controller.rb.template") %> output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %> edit_template: type: file template_path: <%= File.join(templates_directory_path, "app", "views", "edit.html.erb.template") %> output_path: <%= File.join("app", "views", @name_plural, "edit.html.erb") %> index_template: type: file template_path: <%= File.join(templates_directory_path, "app", "views", "index.html.erb.template") %> output_path: <%= File.join("app", "views", @name_plural, "index.html.erb") %> new_template: type: file template_path: <%= File.join(templates_directory_path, "app", "views", "new.html.erb.template") %> output_path: <%= File.join("app", "views", @name_plural, "new.html.erb") %> show_template: type: file template_path: <%= File.join(templates_directory_path, "app", "views", "show.html.erb.template") %> output_path: <%= File.join("app", "views", @name_plural, "show.html.erb") %> <% if @test_framework == "test_case" -%> functional_test_template: type: file template_path: <%= File.join(templates_directory_path, "test.rb.template") %> output_path: <%= File.join("test", "functional", "#{@name_plural}_controller_test.rb") %> <% elsif @test_framework == "rspec" -%> functional_test_template: type: file template_path: <%= File.join(templates_directory_path, "spec.rb.template") %> output_path: <%= File.join("test", "functional", "#{@name_plural}_controller_spec.rb") %> <% end -%>