adding the silly hello world controller

This commit is contained in:
Dan Buch
2011-08-08 21:21:18 -04:00
parent 6b5ccdcc16
commit 875b2f1ab1
6 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class HelloController < ApplicationController
def world
end
end

View File

@@ -0,0 +1,2 @@
module HelloHelper
end

View File

@@ -0,0 +1,11 @@
<h1>Several increasingly silly ways of displaying &ldquo;Hello world!&rdquo;:</h1>
<p><%= "Hello world!" %></p>
<p><%= "Hello" + " world!" %></p>
<p><%= w = "world"
"Hello #{w}!" %></p>
<p><%= 'H' + ?e.chr + ('l' * 2) %><%= ('o word!').gsub('d', 'ld')%></p>
<% hello = "Hello" %>
<% world = "world!" %>
<%= hello %> <%= world %>