resource_controller.rb
Path:
lib/generators/templates/resource_controller.rb
Last Update:
Mon Jul 30 14:58:32 +0000 2012
Methods
edit
index
show
update
Public Instance methods
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]