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 7586931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:32:55+00:00 2026-05-30T19:32:55+00:00

I have a simple-navigation for my View : SimpleNavigation::Configuration.run do |navigation| navigation.active_leaf_class = ‘active’

  • 0

I have a simple-navigation for my View :

SimpleNavigation::Configuration.run do |navigation|
  navigation.active_leaf_class = 'active'
  navigation.items do |primary|
    primary.item :profile,'Profile', edit_user_path do |profile|
      profile.item :basic, 'Basic Information', edit_user_path
      profile.item :additional, 'Addditional Details', additional_details_user_path
      profile.dom_class = 'nav nav-list'
    end
  primary.item :notifications, 'Notifications', notification_preferences_user_path do |notification|
    notification.item :notificatin_preference, 'Notification Preferences', additional_details_user_path
    notification.dom_class = 'nav nav-list'
  end

primary.dom_class = ‘nav nav-pills’
end
end

Additional details is another method which is not related to edit, so it doesnt highlight the primary profile link when i click on that link. How can I et it right? MY User resources in routes are like this :

resources :users do
  member do
    get :network
    put :peer_tagged_expertise_list
    get :qr_code
    get :qr_code_image
    get :about_you
    get :timeline
    get :network_tagcloud
    get :user_tagcloud
    get :settings
    get :notification_preferences
    get :additional_details
  end
  collection do
    get :test
    get :followers
  end
  resource :networks
end
  • 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-30T19:32:57+00:00Added an answer on May 30, 2026 at 7:32 pm

    New Answer after getting more information

    The structuring code used in Simple Navigation does not automatically adjust your routes.

    In order to get /users/1/profile/additional_details, your route should include the nesting of user => profile => additional details.

    The path should be something like additional_details_user_profile_path when generated. This fixes the URL problem, but I’m not sure if it will fix your highlighting issue with Bootstrap.

    Old Answer
    For simple navigation, use

    navigation.active_leaf_class="active"
    

    to set your active nav item class. For Bootstrap, the item should be classed as active.

    SimpleNavigation::Configuration.run do |navigation|
      navigation.active_leaf_class = "active" # Added this line
      navigation.items do |primary|
        primary.item :profile,'Profile', edit_user_path do |profile|
          profile.item :basic, 'Basic Information', edit_user_path
          profile.item :additional, 'Addditional Details', additional_details_user_path
          profile.dom_class = 'nav nav-list'
        end
      primary.item :notifications, 'Notifications', notification_preferences_user_path do |notification|
        notification.item :notificatin_preference, 'Notification Preferences', additional_details_user_path
        notification.dom_class = 'nav nav-list'
      end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a navigation view with a cell that has something as simple as
I have a root view controller with just a simple navigation button that loads
I have a simple view in Django: @render_to('episode_list.html') def list_episodes(request, season): query = Episode.objects.filter(season=season)
i have a simple markup with a navigation div , a content div and
I have a fairly simple iPhone application that I want to have run on
I have a view which consists of a tableview and a navigation bar. For
I have a simple navigation hierarchy: Controller 1 > Controller 2 > Controller 3
I have simple JSF application. Everything works fine, but not navigation. It behaves like
I have a simple iPhone app based on a navigation controller. There are two
I have what I thought was simple JSF navigation setup but when I hit

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.