Rubyology

Rubyology 34: Screencast - Ruby WebServer 2


Listen Later

This is a continuation of the BYO-WebServer application except rather than outputing static text, we will read and output an html file stored in the same directory. The new 2 lines of code are as follows: myfile = IO.readlines("chris.html") @session.puts myfile Tune in next week for some ERB!
...more
View all episodesView all episodes
Download on the App Store

RubyologyBy Chris Matthieu