Displaying 1 result from an estimated 1 matches for "visitscontrol".
2006 Jul 11
4
Variable Losing it''s Value
...p after a few weeks, only to find it was broken,
in that the variable seems to be losing it''s value somewhere between the
controller and the view. I''ve broken it down to the absolute simplest
test, and here is what I get:
THE CONTROLLER (controllers/visits_controller.rb)
class VisitsController < ApplicationController
def list
@test = "test"
end
end
THE VIEW (views/visits/list.rhtml)
Testing: <%= @test %></p>
THE RESULT (http://logapp/visits/list.rhtml)
Testing:
EXPECTED REUSULT
Testing: test
A ''@test.inspect'' returns ''nil'...