Hi all,
configured ror successfully,recently.
In my sample application i want to display some images.I am placing
the images in public\images folder and giving link to the image using
img tag in my html code. But images are not displaying instead a blank
image is displaying where did it gone wrong…pls help…
Hay Venkata,
can you please share the code of your controller corresponding to the
image
object? and also the code you wrote for displaying image in your
action/view
file ?
So I might try to find out the problem and the solution:)
Best Wishes “Shuvecha”
On Mon, Nov 22, 2010 at 10:21 AM, venkata reddy
[email protected]wrote:
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
–
Thanks,
Irfan A. Rizvi
http://www.welltreat.us
+880 1676 246 991
+880 1723 712 288
Hi ahmed,
controller code:class HomeController < ApplicationController
def index
end
end
actullay i created a created a home controller and changed the
routing.everthing in the html code is reflecting but images are not
getting displayed.
and see the below html code i written for displaying the image
Hi All
thank u …it worked…
On 22 November 2010 04:53, venkata reddy [email protected]
wrote:
[…]
If you have images in public/images just reverence by
src=“/images/bg.gif” (don’t forget the leading /). Alternatively use
image_tag( “bg.gif” ) which will look in public/images.
Colin