Hatred towards Nested Polymorphic Paths

Josh Peek
2007-07-07T05:25:37Z

I have a real grudge against the new nested polymorphic path magic
stuff. I feel it encourages and gives people an excuse to write overly
compelled routes. Resources should NOT be nested more than one level
deep.

"/companies/1/people/1" == BAD
"/people/1" == GOOD

I have no problem with nested collections.

"/companies/1/people"

You shouldn''t need to be scoping person #1 if its the unique id.

I''ve seen alot of defect and enhancement tickets going by Trac showing
its immaturity and lack of real need. None of this stuff has been
merge with the stable, so its not to late to change things. It should
really be pulled from Edge and into a plugin,
"nested_polymorphic_paths".

Its not in the spirit of Rails to be providing tools to help you
practice bad habits.