Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/branches/1-2-stable/railties/lib/rails_generator/generators/components/controller/templates/controller.rb

Revision 518, 202 bytes (checked in by david, 4 years ago)

Added new generator framework that informs about its doings on generation and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [bitsweat]

Line 
1 class <%= class_name %>Controller < ApplicationController
2 <% if options[:scaffold] -%>
3   scaffold :<%= singular_name %>
4 <% end -%>
5 <% for action in actions -%>
6
7   def <%= action %>
8   end
9 <% end -%>
10 end
Note: See TracBrowser for help on using the browser.