m sure of the path dear ..
On Wed, May 5, 2010 at 1:23 PM, MaD <[email protected]> wrote:
> maybe this is due to your relative path. are you sure the file is
> where you think it is? are you sure the current working directory is
> what you think it is?
> try File::exists?("#{RAILS_ROOT}/path/to/my/file")
>
> another thing: since you obviously left out some code and replaced it
> with "..." we can't be sure your code is correct. are you?
>
>
> On 5 Mai, 08:23, Rahul Mehta <[email protected]> wrote:
> > hii
> >
> > <%if File::exists?("../data/[email protected]}")%>
> >
> > <div id="image_holder" class ="span-10 ">
> > <%= image_tag "../data/
> [email protected]}" %>
> > </div>
> > <%end%>
> >
> > my this file exists not working
> >
> > please help.
> >
> > thanks
> >
> > rahul
> >
> > --
> > 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]<rubyonrails-talk%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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.