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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:19:46+00:00 2026-05-23T16:19:46+00:00

I have my images stored in /rubyprograms/search/public/urlimages . I checked through my terminal to

  • 0

I have my images stored in /rubyprograms/search/public/urlimages. I checked through my terminal to make sure that path is there and that all of the images are inside it. I link to the images, for example, at this path: /­rubyprograms/­search/­public/­urlimages/­2173513720.­jpg but my app cannot seem to find the image. For example, this is an error in my logs:

Started GET "/rubyprograms/search/public/urlimages/2173486240.jpg" for 127.0.0.1 at Thu Jul 07 21:34:23 -0700 2011

ActionController::RoutingError (No route matches "/rubyprograms/search/public/urlimages/2173486240.jpg"):

However I know the images are there at that route. Why is this happening?

  • 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-23T16:19:47+00:00Added an answer on May 23, 2026 at 4:19 pm

    If your app is in /rubyprograms/search, the public/ directory will be used as the root directory for all non-Rails requests.

    Because of this, the correct path to the images would be /urlimages/2173486240.jpg.

    Rails has a handy helper for images, called image_tag, which essentially creates image tags for you. The usage is:

    <%= image_tag('2173486240.jpg') %>
    # will create <img src="/images/2173486240.jpg" alt="" />
    

    Please note that this will create the entire html tag, and assume that you have your images in public/images/.

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

Sidebar

Related Questions

I have stored images from the net like this Documents/imagecache/domain1/original/path/inURI/foo.png Documents/imagecache/domain2/original/path/inURI/bar.png Documents/imagecache/... Documents/imagecache/... Now
I have a service that converts images stored on a website to byte array
I have images that are stored in the database as a BLOB. Now I
I have some images stored in /images the problem is that i wish to
I have a bunch of images stored in my database as blobs that I
I have a couple images stored in a database that I am trying to
I have a SQL database that contains images stored as a byte array. I
On my website I have some images that are stored in the same SQL-cell
We have images stored in a file system in the following format. So that
I have images stored in a database in the form of ImageIcons that I

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.