0

I am new to Rails and I am using Ruby version 1.9.3 and Rails version 3.0.0.

I want to get image in my project app\assets\images directory. How do I do that?

See below my code:-

<%= image_tag("images/vertax_logo1_03.png", :alt => "vertax24seven") %>

Above the code not given any error but image not display in my page.

please help me. How do I do that?

1
  • 1
    If your new to rails and not working on an existing app it might be best to get straight into Rails 4
    – DickieBoy
    Oct 25, 2013 at 10:23

1 Answer 1

4

If you are storing the images in assets/images folder

<%= image_tag("vertax_logo1_03.png", :alt => "vertax24seven") %>

can show your image.

This documentation will help you to customize your image path

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.