Changeset 1362

Show
Ignore:
Timestamp:
02/07/07 23:31:55 (1 year ago)
Author:
pdcawley
Message:

Partial fix for the index method of top level resource

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/acts_as_resource/lib/pdcawley/action_controller/resourceful.rb

    r1361 r1362  
    5757        if params[:id] 
    5858          set_instance_variables_for_chain(resource_class.find_resource(params).resource_chain) 
    59         else 
     59        elsif params[key_chain.last] 
    6060          res_finder = params.merge("id" => params[key_chain.last]) 
    6161          parent = resource_class(key_chain.last).find_resource(res_finder)