[patch] fix for multi-nested resources
-
humancopy
well, this quick patch didn't work all the way through (hash being a hash) :)
then i found a better way, using recognized_route and it's significant_keys array, which is in the right order. if no recognized_route found it will revert to using params as before...
changing line # 738 in resources_controller to:
@route_enclosing_names = (recognized_route and recognized_route.significant_keys or params).select{|k| k.to_s =~ /_id$/}.map{|id| [id.to_s.sub('_id','').pluralize, false]}attached a patch. :)
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
