aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/controller/templates/controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/generators/controller/templates/controller.rb')
-rw-r--r--railties/generators/controller/templates/controller.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/generators/controller/templates/controller.rb b/railties/generators/controller/templates/controller.rb
new file mode 100644
index 0000000000..f9800ab556
--- /dev/null
+++ b/railties/generators/controller/templates/controller.rb
@@ -0,0 +1,10 @@
+class <%= class_name %>Controller < AbstractApplicationController
+<% if options[:scaffold] -%>
+ scaffold :<%= singular_name %>
+<% end -%>
+<% for action in actions -%>
+
+ def <%= action %>
+ end
+<% end -%>
+end