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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:47:06+00:00 2026-06-05T15:47:06+00:00

I am little bit confuse that I am showing images through css it’s working

  • 0

I am little bit confuse that I am showing images through css it’s working fine. But when I am showing images using views it’s not display. Following is simple code I am using. But I cannot find what’s wrong!

new.html.erb

<h1>Users#new</h1>
<p>Find me in app/views/users/new.html.erb</p>
<img src='close.png'>

I am getting this error in console:

ActionController::RoutingError (No route matches [GET] "/users/close.png"):
  actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'

This is the dir image of project:

enter image description here

  • 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-05T15:47:08+00:00Added an answer on June 5, 2026 at 3:47 pm

    It would be easier to use the image_tag helper method – this will put in the right src path for you automatically, so long as you are storing your images where the asset pipeline expects them to be (you are). e.g.

    <%= image_tag 'close.png' %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Probably this is not a difficult question, but I am always a little bit
I am little bit confused about this statement that I read in a book
I am little bit confuse about log4j in grails. I need to log info
I'm on my way learning about PDO from phpro.org, and a little bit confuse.
--I haven't develop any iPhone Web Application ever...so i am little bit confuse about
I am little bit confused of that what happened because it's illogical for me.
I'm using SQLite as my database, and I'm a little bit confused about how
I have a jquery code, but I'm a little bit confused on how can
I'm a little bit confused why it does not work. What i want is
I'm a little bit confused about Git. When I'm looking through the manual it

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.