Displaying 1 result from an estimated 1 matches for "namercontroller".
2006 Jun 17
4
Simple tutorial weirdness
...rking and I can''t figure out why.
No errors are thrown my the page shows:
Howdy, world! My name is Stuart Felenstein.
This was verified at .
So no time stamp showing. I went into IRB , did a Time.now() and it''s
working there so am I missing something ?
In my controller:
class NamerController < ApplicationController
def index
@my_name = ''Stuart''
end
def timestamped
@my_name = ''Stuart''
@the_timestamp = Time.now()
end
end
In my view
<html>
<head>
<title>
I''m timestamped at <%= @the_timestamp %>
</title>
</h...