views:

1879

answers:

1

Is there any helper method (Other than default rails breadcrumb) that generates bread crumb navigation dynamically for a particular page without having to pass trivial parameters in RESTful application? That is, something that figures out automatically where the user is based on the REST url she is visiting?

For above mentioned implementation, we need to pass parameters like

REST

<% add_crumb(‘Profile’, user_profile_path) %>

Current page

<% add_crumb(“My Incoming Messages”, request.path) %>

There must be a way to generalize the code so that no parameter passing is required and should work for all RESTful apps with minimal configuration.

+4  A: 
Chirantan