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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:02:35+00:00 2026-05-25T12:02:35+00:00

Rookie coder here… I am currently building an ecommerce site in rails. I have

  • 0

Rookie coder here… I am currently building an ecommerce site in rails. I have brands and price lists on the left hand side of the results pages, these lists are often longer than the page itself, I would therefore like to put them into scroll boxes like here

I have tried putting then into iframes, using partials, but it keeps producing different errors each time, and seems more fiddly than it should be. I have only really been able to find relevant information from dated blogs etc. The code I have tried is variations of this…

View:

<iframe src="<%= url_for :action => 'brands' %>" scrollbars="auto" name="brands"></iframe>

Controller:

def brands 
   render :partial => 'brands', :layout => false 
end

Partial:

<ul>
   <% @brands.each do |prod| %>
        <li><%= link_to(strip_tags(prod[0]).html_safe + " " + "(#{prod[1]})", params.merge(:brand => "#{prod[0]}")) %></li>
   <% end %>
</ul>

This seems to throw up a “Couldn’t find Product with id=brand” error.

I also read that iframes may be a little old fashioned, so I am fully open to alternatives. Any help would be much appreciated!

  • 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-25T12:02:35+00:00Added an answer on May 25, 2026 at 12:02 pm

    No need to use iframes for this. You should just be rendering the partial in the view itself. And if you want scroll bars you should use CSS to make the height/width fixed and then set the overflow to scroll. Here is a link to help with that

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

Sidebar

Related Questions

Javascript rookie here. I have a small page with a first name/last name and
everyone. I have a rookie question about the returning value in java. Here's my
Rookie C++ Programmer here again I'm using VC++ VS2008 and making an attempt at
I'm pretty much the rookiest rookie when it comes to Flash. Here's the actionscript
This should be really simple but I'm a javascript/jQuery rookie, so here we go:
PHP mysql database I have created a follow on question to this one here
I'm a complete rails rookie and i'm trying to create validation for a contact
I'm a Java rookie and I was wondering, if I have the following typical
Sorry for the rookie question, as I'm just starting out with C#. I have
This is probably a rookie question but; Let's say I have an ActionResult that

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.