On 5 February 2011 05:41, amritpal pathak <amritpalpath...@gmail.com> wrote:
> i am new to ruby.I want to add one image to my webpage.Please tell me how to
> give a link to image from .erb file??

Put the image in the application public folder and use image_tag.
See http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to