From: Nikita Baksalyar Date: 2011-04-27T15:52:14+09:00 Subject: Re: File.open of HTML file removes code Hello, Please try to run this commands in your OS command prompt: For Windows: type index.erb For Linux/Mac OS X: cat index.erb And then: $ irb irb(main):001:0> File.open('index.erb').read Then compare system output with Ruby's output - if they have no differences - the problem is somewhere in your code. In that case please post your code to www.pastebin.com and give a link there. Good luck. :) -- Posted via http://www.ruby-forum.com/.