Ruby on Rails Sunday, November 21, 2010

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

<html>
<body>

<p>Hi All</p>
<img src=*C:\rails-projects\insert_static\public\images\bg.gif*
width="800" height="600" />
</body>
</html>

On Nov 22, 9:26 am, Irfan Ahmed <irfan...@gmail.com> wrote:
> 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
> <venkatareddy...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > 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...
>
> > --
> > 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+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscrib e@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> Thanks,
> Irfan Ahmed Rizvihttp://www.welltreat.us
> +880 1676  246  991
> +880 1723  712  288

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment