To get access to parameters you need to use the params method
def testing
@bar = param[:foo]
end
Cheers