Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4369

Show
Ignore:
Timestamp:
05/27/06 18:55:31 (4 years ago)
Author:
david
Message:

Simply Restful should call an action called "destroy", not "delete", to follow the CRUD conventions from scaffolding

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/simply_restful/lib/simply_restful/routes.rb

    r4368 r4369  
    2222      (collection_methods[:post] ||= []).unshift :create 
    2323      (member_methods[:put] ||= []).unshift :update 
    24       (member_methods[:delete] ||= []).unshift :delete 
     24      (member_methods[:delete] ||= []).unshift :destroy 
    2525 
    2626      path = "#{path_prefix}/#{plural}"