| Web Development >> Ruby On Rails |
Ruby WebServer 3
| Language : | English | Quality : | High | Has Audio : | true | Source : | Other | Media : | QuickTime |
| ERB (Embedded Ruby)! This addition to our Ruby web server application allows you to call web pages with Ruby code that execute on the fly (time of render). Check out these snippets: myfile = IO.readlines("chris.html") #@session.puts myfile template = ERB.new <<-EOF #{myfile} EOF @session.puts template.result(binding) [SUGGEST A ARTICLE] |
Tags: Ruby On Rails, Rubyology, Screencast, WebServer, [SUGGEST A TAG]
Resources referenced in this screencast
|
