@7stud no I do not, I might have bad explained the problem. the thing is when i perform the following code:
No such file or directory - ./archives/results/Archives-2011-08-26-09-56-00-UTC.xml Extracted source (around line #1): <% r = Result.find(@result).nameFile %> <% string = "./archives/results/" + r %> <% f = File.open(string) %> I got this error: No such file or directory - ./archives/results/Archives-2011-08-26-09-56-00-UTC.xml Extracted source (around line #1): 1: <h1>Résultat</h1> <p>id :<%= @result %> <% r = Result.find(@result).nameFile %> <% string = "./archives/results/" + r %> <% f = File.open(string) %> Rails.root: /home/thelo/RoR/ihm_test Application Trace | Framework Trace | Full Trace app/views/pages/print_result.html.erb:1:in `initialize' app/views/pages/print_result.html.erb:1:in `open' app/views/pages/print_result.html.erb:1:in `_app_views_pages_print_result_html_erb__106515637_82305240_211210089' and in the console ActionView::Template::Error (No such file or directory - ./archives/results/Archives-2011-08-26-09-56-00-UTC.xml So when i replace string by "Archives-2011-08-26-09-56-00-UTC.xml" everything is ok, no problem. I just want to understand why and fix this problem 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.

