Scott Elwood wrote in post #995260:
> Hey there,
>
> I am trying to edit an erb file in ruby, however when I do:
>
> file.open("index.erb")
>
> It displays the information, but removes the Doctype, html, body, and
> head tags.
>
> Is there any way to read the entire contents of the .erb file?

File.open("...") just opens the file and returns an open File object, 
but it doesn't read it until you ask it to.

Try:

File.open("index.erb") do |file|
  file.each_line do |line|
    puts line
  end
end

-- 
Posted via http://www.ruby-forum.com/.