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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:41:05+00:00 2026-05-26T14:41:05+00:00

i have a footer as the last element in my application.html.erb page, however for

  • 0

i have a footer as the last element in my application.html.erb page, however for one page in the whole site, i do not want the footer to appear.

Whats the best way to handle this? every solution i come up with is wet (not dry)

  • 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-26T14:41:06+00:00Added an answer on May 26, 2026 at 2:41 pm

    Why don’t you create a specific layout for this single page? It should be more maintainable than any extra logic.

    DRY is not a goal to reach, it’s like a conditional warning and like all warnings, you can ignore them if it makes sense.


    If you really insist, do this:

    <% unless defined? @no_footer %>
      your html here
    <% end %>
    

    So the footer will disappear only if you set the instance variable in your controller:

    @no_footer = true
    

    Another way could be to check params action/controller and put the logic in a helper method.

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

Sidebar

Related Questions

I have a report footer that i want to appear on the last page
So, I have a footer which will appear on every page of my web
I have a fixed footer on my site here: http://starprovisions.com/dev/bacchanalia.html On my 1360x768 screen
I have 4 different divs. The last one is footer. How can I put
I currently have an encoded footer file for a wordpress file I want to
i have 3 rows div layout with footer on bottom of page, but i
When you want to add whitespace between HTML elements (using CSS), to which element
I have a crystal report which when generated has a last page that is
I have the strangest problem! I have an ASP.NET website application (luckily not yet
i have a bar in my footer called #elementbar. i want this elementbar 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.