File: resource_controller.rb

# resource_controller.rb

Path: | lib/generators/templates/resource_controller.rb
Last Update: | Tue Aug 24 03:18:00 -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]