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

  • Home
  • SEARCH
  • 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 8564133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:07:36+00:00 2026-06-11T17:07:36+00:00

On the index.html.erb page, I am using a custom black background. This custom background,

  • 0

On the index.html.erb page, I am using a custom black background. This custom background, by default, is also used on all other pages including the page for new.html.erb (_form.html.erb), edit.html.erb, etc…

Is there a way to change the background on the other pages (for example a background that is white) on the other pages such as new.html.erb? If so, how can one do this?

  • 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-11T17:07:37+00:00Added an answer on June 11, 2026 at 5:07 pm

    I think you’re looking for layouts: http://guides.rubyonrails.org/layouts_and_rendering.html

    Specifically, you could have a black_background and a white_background layout. Then you just render your partials with one or the other layout depending on which you want.

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

Sidebar

Related Questions

I am using rails beta 3 and I have a erb page named index.html.erb
I'm building a blog using RoR. I have the index.html.erb page for the posts
Okay, consider the following: A app/views/pages/index.html.erb , consisting of: <div id='content'> <%= link_to 'Test',
I'd like to modify the contents of a controller's index.html.erb page based on whether
Inside my index.html.erb <script type= text/javascript> var msg = Hello World ; </script> i
In my rails view(index.html.erb), i have following structure <div> <%= render :partial => create
I have 3 files: index.html.erb is my homepage inside the index I render a
I have the* Topics * controller and in the view/topics/index.html.erb the link for destroying
In my controller I have: @invoices = current_user.account.clients.map(&:invoices).flatten and in my index.html.erb I want
My index.html page for my project needs some Ruby code so I need to

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.