I'm hoping to push the code for this within the next day or two.
One big side effect of this change is that it messes with named
routes. The new object_url uses polymorphic_url to do all of its
heavy lifting, and polymorphic_url uses named routes behind the
scenes. It assumes that these named routes were generated by Rails
resources mapper. If you were wondering why Hobo 1.3 puts a bunch of
get, put and post statements into hobo_routes.rb rather than a bunch
of resources statements, that's one of the biggest reasons why. Hobo
1.3 names its routes in a manner compatible with Hobo 1.0. Unless we
decide to back out the object_url changes, Hobo 1.4 will create routes
by using "resources" inside of routes.draw. Some of the named routes
will therefore not have the same names as they would in Hobo 1.3.
For example, if you use the function `create_task_for_story_path` in
your code, you would have to change that to `create_story_tasks_path`.
The controller function will still be names
TasksController#create_for_story, but the named path changes.
This will break a lot of people's code, but I think that it's a
worthwhile change -- moving forward we do want to remove incompatible
Hoboisms, this being one of them.
thoughts?
Bryan
>
https://groups.google.com/d/msg/hobousers/-/cnU3EjehXqkJ.