[Rails] Re: Reading a file using File.read

2012-06-14 Thread cyber c.
I think i understood the problem -- Posted via http://www.ruby-forum.com/. -- 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 emai

[Rails] Re: Reading a file using File.read

2012-06-14 Thread cyber c.
Im using absolute path. Actually i mounted a directory from remote server anddo a "find" for a specific file and then try reading it. The cmd find passes and returns a valid path to the file. But only the read cmd fails. -- Posted via http://www.ruby-forum.com/. -- You received this mess

[Rails] Re: Reading a file using File.read

2012-06-14 Thread Andreas S.
Are you using a relative path? You might just be in a different working directory in your Rails app. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonr