Displaying 1 result from an estimated 1 matches for "the_timestamp".
2006 Jun 17
4
Simple tutorial weirdness
...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>
</head>
<body>
Howdy, world! My name is <%= @my_name %>.<br/>
This was verified at <%= @the_timestamp %>.
</body>
<...