Here's a patch that changes map.resources to use the "flipped" hashes for optional actions. Tests pass for new arrangement. Looks like postback actions seem to work again too, though the #filtered_named_routes method in your routing_navigator only shows one of the routes with the same name (but different :method conditions). Not sure if that is going to cause a problem in the route code somewhere.

map.resources :comments, :member => { :get => :reply, :post => [:reply, :spawn, :split] }

j

--
Josh Susser
http://blog.hasmanythrough.com

Attachment: flipped_action_options.diff
Description: Binary data


_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to