views:

32

answers:

0

What might cause this? I am using instantruby 2.0 in window and Rails 2.0.2. is it possible that this version did not support this?

/app/controllers/say_controller.rb

class SayController < ApplicationController
def hello
@time = Time.now
end
end

app/views/say/hello.html.erb

<html>
<head>
<title>Hello, Rails!</title>
</head>
<body>
<h1>Hello from Rails!</h1>
<p>
It is now <%= @time %>
</p>
</body>
</html>

output

<html> 
<head> 
<title>Hello, Rails!</title> 
</head> 
<body> 
<h1>Hello from Rails!</h1> 
<p> 
It is now 
</p> 
</body> 
</html>