On Apr 28, 2010, at 11:55 AM, woodsy0130 wrote:
Hello, I have built a simple application using scaffolding and i have added a background image to my index pages of each model. This is using CSS and i have the background image in the image folder within the rails application. However, i am unable to add a single image to an individual 'view' page. I cant do this in css because i only want it on one page. When i add an image to a single view page using the following code,: <img src="logo.gif" alt="logo" /> i check my browser and it comes up with a small box with a red cross in it saying 'logo'. But not the image. Can someone please explain what i can do in simple terms since i am a beginner at this sort of stuff.
Try... <%= image_tag 'logo.gif', :alt => 'logo %> -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

