Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3552
| From | Nikita Baksalyar <n.baksalyar@yandex.ru> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: File.open of HTML file removes code |
| Date | 2011-04-27 01:52 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <c48b9773e1e005682aff99256a89fd44@ruby-forum.com> (permalink) |
| References | <f35f5a43da863832e708040011124ed4@ruby-forum.com> |
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/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
File.open of HTML file removes code Scott Elwood <elwood32@live.com> - 2011-04-27 01:01 -0500
Re: File.open of HTML file removes code Nikita Baksalyar <n.baksalyar@yandex.ru> - 2011-04-27 01:52 -0500
Re: File.open of HTML file removes code Brian Candler <b.candler@pobox.com> - 2011-04-27 02:49 -0500
Re: File.open of HTML file removes code Scott Elwood <elwood32@live.com> - 2011-04-27 13:57 -0500
Re: File.open of HTML file removes code 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-27 19:39 -0500
Re: File.open of HTML file removes code Scott Elwood <elwood32@live.com> - 2011-04-28 01:14 -0500
csiph-web