On 26 August 2011 21:22, thelo.g thelo <[email protected]> wrote: > Hi everybody, > > I ve got a problem with strings and the class File in rails > Indeed, when i try to do this: > File.new("archives/sequences/archives-2011.xml") > it works perfectly, however when i do > string = "archives/sequences/" + @filename => filename being > "archives-2011.xml" > File.new(string) > > it doesn't work! > ruby tells me it cannot find the file
Show us the exact error message. Copy and paste it into the post, don't retype it. Colin > > > does anyone could tell me why? > > Thanks > > -- > 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 [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. > > -- Colin https://plus.google.com/111605230843729345543/ -- 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.

