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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:45:40+00:00 2026-06-12T04:45:40+00:00

In Ruby on Rails, can we have some GLOBAL static HTML snippets that we

  • 0

In Ruby on Rails, can we have some GLOBAL static HTML snippets that we can use in the same way as a helper just like include in php? I’m making a nav bar but sometimes I want it at the bottom of my page.

Thanks in advance.

  • 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-06-12T04:45:42+00:00Added an answer on June 12, 2026 at 4:45 am

    You can use partials:

    Create a view which its filename starts with an underscore, for example: /views/shared/_navbar.html.erb

    then you can render this partial anywhere you’d like using

    <%= render :partial => "shared/navbar" %>
    

    in your view.

    Note that although the partial file name has an underscore in the beginning, the render states its name with the underscore omitted.

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

Sidebar

Related Questions

I have some simple ruby classes that I want to use with rails (they
I have a Ruby on Rails app running on my server, and I can't
Hoping some learned Rails developers here can recommend an existing Ruby on Rails plugin
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I'm getting started with Ruby on Rails and have some questions. I currently have
I am using Ruby on Rails 3.2.2, cucumber-rails-1.3.0 and rspec-rails-2.8.1. Since I have some
I have some server applications running on apache2; Ruby on Rails, PHP and others.
Motivation: I'm solving problems that are caused by strange/mutated/odd/perverse cookies in ruby-on-rails. I have
I have a Ruby/Rails app, which is standard Rails CRUD, with some jQuery and
I'm new to Ruby on Rails and have some questions: What tutorials are available

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.