instead of using image.filename, you could try
http://yourserver:port/snapshots/ followed by image.filename
On Thu, Aug 21, 2008 at 11:54 PM, Lost Warrior
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I am storing the images in /public/snapshots.
>
> for showing the images i have used image_tag
> but in my image_tag if i am going to write as
> <%= image_tag image.filename,:alt
=>image.filename,:size=>''320x244''%>
>
>
> but the image location is going as /images/1.jpg
>
> i want to show the images in my snapshots directory.Please help
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
Zhao
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---