resource_controller.rb
Path:
lib/generators/templates/resource_controller.rb
Last Update:
Mon Mar 02 05:57:46 -0700 2009
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_attributes(<%= singular_model %>)
[Validate]