Parent

Merb::Generators::ResourceControllerGenerator

Public Instance Methods

params_for_get() click to toggle source

TODO: fix this for Datamapper, so that it returns the primary keys for the model

# File lib/generators/data_mapper_resource_controller.rb, line 3
def params_for_get
  "params[:id]"
end
properties() click to toggle source

TODO: implement this for Datamapper so that we get the model properties

# File lib/generators/data_mapper_resource_controller.rb, line 8
def properties
  []
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.