Giter Site home page Giter Site logo

Comments (5)

weppos avatar weppos commented on June 23, 2024

I'm sorry, but I didn't understand the issue.

from breadcrumbs_on_rails.

roscom avatar roscom commented on June 23, 2024

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.

weppos avatar weppos commented on June 23, 2024

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.

roscom avatar roscom commented on June 23, 2024

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.

weppos avatar weppos commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.