Comments (5)
I'm sorry, but I didn't understand the issue.
from breadcrumbs_on_rails.
Sorry.
PagesController excerpt:
class PagesController < ApplicationController
add_breadcrumb "home", :root_path
def aboutus
@title = 'About Us'
@wire_frames = %w(08)
add_breadcrumb bc_title, page_url
end
def contactus
@title = 'Contact Us'
@wire_frames = %w(07)
add_breadcrumb bc_title, page_url
end
..........
Case #1
Navigating from page to page will always render the breadcrumb trail as "Home > [current page]"; not "Home > page >next page > next page". You could say that is reasonable behaviour.
Case #2
If I navigate to another controller, say, "JobsController" all I get is the first add_breadcrumb from the jobs controller action and no prior breadcrumb history from the pages controller.
Clearly I am doing something wrong else I wouldn't have confused you. Is that how it is supposed to work, maybe? Or have I misunderstood something.
And I appreciate your help.
Ross
from breadcrumbs_on_rails.
Breadcrumb navigation is intended to display current navigation status, not hold user navigation history. If the user requested JobsController#index, why would you display the breadcrumb navigation for PagesController#contact?
from breadcrumbs_on_rails.
Yes, perhaps a bad example.
I think I may have the wrong understanding of the gem's purpose.
Can you point to an example where it is deployed as you intended?
from breadcrumbs_on_rails.
I don't have any public example.
However, if you search for breadcrumbs_on_rails, there should be a few examples.
https://github.com/search?utf8=%E2%9C%93&q=breadcrumbs_on_rails&type=Everything&repo=&langOverride=&start_value=1
from breadcrumbs_on_rails.
Related Issues (20)
- :title in options do not work HOT 1
- Dynamic switching languages only changes last element HOT 4
- Breadcrumbs don't work if controller action is private HOT 2
- after last
- how to remove breadcrumb on special controller/action HOT 1
- Can you add css class to this? HOT 2
- Need config for seperator when default HOT 1
- Unable to use CSS options for final elements in default builder HOT 2
- Is there a way to pass args to target_path? HOT 1
- Hide the breadcrumbs if none present HOT 1
- Separator not displayed HOT 2
- add_breadcrumb is showing the text of the breadcrumb but they are not links HOT 1
- Use schema.org microdata with breadcrumbs_on_rails HOT 4
- Why is this gem explicitly mixed in? HOT 2
- Unclear Set Up Instructions HOT 1
- Replace dependency on `rails` with `railties` HOT 1
- Ability to fully support Bootstrap's markup? HOT 4
- Breadcrumbs outside controllers (like storybook previews) HOT 1
- Missing required keys: [:id] HOT 1
- Breadcrumbs on Rails with Tailwind HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from breadcrumbs_on_rails.