Displaying 1 result from an estimated 1 matches for "filmcontroller".
2006 Aug 17
8
instance variables in templates
Hey all,
Well... hmm... feeling pretty stupid here...
For some reason my controller instance variables are not displaying
in my templates. I''ve boiled it down to this test case.
class Rss::FilmController < ApplicationController
def display
@time = Time.now
end
end
and the template:
<html>
<head>
<title>Is This Ever Going To Work</title>
</head>
<body>
<p>it is now <%= @time %></p>
</body>
</html>
that''s it!...