Closed visoft closed 12 years ago
I'm sorry, but I believe this changes are specific to a very limited set of user cases and cannot be included in the library. You can easily obtain the same result by conditionally add elements to the breadcrumb stack.
No problem, it's easy enough to create a custom builder (which I originally did https://gist.github.com/1070758) Just curious, but where would you ever want the "middle" item highlighted as the "active" item when a form is re-rendered if there is an error. It really looks odd, like so Home >> Widgets >> New. Is this code the wrong way to handle the controller? Technically, the user thinks that they are on the New (or Edit) Widget page, even though the URL doesn't represent it.
Modified the simple builder to set the last item to "active" on an HTTP POST request
See https://github.com/weppos/breadcrumbs_on_rails/issues/4 for more details