piotrmurach / loaf

Manages and displays breadcrumb trails in Rails app - lean & mean.
MIT License
406 stars 24 forks source link

There is no way to force a breadcrumb to be current (when it's not) #3

Closed carlallen closed 9 years ago

carlallen commented 12 years ago

This is really useful when on a create action, because you likely want the breadcrumb to be for "New" even though the action rendered was create. This is especially true with rails resource routing where the create path is only valid on POST, a get on the create path will take you to the index path.

so, i added a force option

add breadcrumb "New", 'new_path', :force => true
carlallen commented 12 years ago

This should be my last in the series of 3 things that I thought needed to be fixed in this gem.

I really like the gem, is very clean and easy to use.