resource_controller.rb
Path:
lib/generators/templates/resource_controller.rb
Last Update:
Sat Aug 21 15:37:19 -0600 2010
Methods
destroy
edit
index
show
update
Public Instance methods
destroy
(id)
edit
(id)
index
()
provides :xml, :yaml, :js
show
(id)
update
(id, <%= singular_model %>) @<%= singular_model %> = <%= model_class_name %>.get(id) raise NotFound unless @<%= singular_model %> if @<%= singular_model %>.update(<%= singular_model %>)
[Validate]