Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:29:44+00:00 2026-05-23T02:29:44+00:00

How do i dynamically link the video name to the title content of my

  • 0

How do i dynamically link the video name to the title content of my breadcrumbs.

I’ve followed the tutorial in https://github.com/sekrett/crumble

/config/initializers/breadcrumbs.rb

    crumb :root, "Home", :root_path
    crumb :video, {:videos => :name}, :video_path
    trail :videos, :show, [:root, :video]

In my video show page, the breadcrumb is as shown:

“Home >> translation missing: en.breadcrumbs.video”

How do i access the title of the video and display it dynamically?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:29:45+00:00Added an answer on May 23, 2026 at 2:29 am

    In order to use `crumb :video, {:videos => :name}, :video_path`, you should firstly define a new breadcrumbs node in your `.yml` file, then make sure that the object `@videos` exists in your context, and the object `@videos` has a valid method “name” (which will return a string)

    In the code you provided, you use `video_path`, so I guess you are using “show” method for the model Video (in CRUD), so you can check the controller for Video model again to make the correct translation.

    Anyway, because the value `params[:id]` is available in the context of the “show” method. You can make use of it and simply change your code to something like below:

     crumb :video, '#{Video.find(params[:id]).name}', :video_path, :params => :id
    

    This way may be “not pretty” (as mentioned in the link you provided), but you can achieve what you want without define a new breadcrumbs node in a new `.yml` file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I dynamically generate the title of a video from the embedly API in my
I'm trying to dynamically create a link from a Windows Form to our website
I want to dynamically populate a link with the URI of the current request,
I'm trying to dynamically and a link to an image, however I cannot correctly
I have a custom control and I want to dynamically insert a link to
I'm sending a page event: page.sendEvent('click', 650, 430); This clicks a link that dynamically
I am using wordpress custom fields to dynamically display a imdb link to an
I need to show for every link, dynamically some text with Java-Script (jQuery). The
How to create dynamically tag inside table. At first create link then inside link
I have a link which adds a <tr> dynamically with JQuery, but my <tr>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.