aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/templates/controller.erb
blob: 600f5d2c59dd95614f3ba6c2265be51c58e38358 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class <%= class_name %>Controller < AbstractApplicationController
  helper :<%= file_name %>
<% if options[:scaffold] -%>
  model    :<%= file_name %>
  scaffold :<%= options[:scaffold] %>

  <%- for action in actions -%>
  #def <%= action %>
  #end

  <%- end -%>
<% else -%>
  <%- for action in actions -%>
  def <%= action %>
  end

  <%- end -%>
<% end -%>
end