= private = protected
assigns(key = nil)
This method has no description. You can help the Ruby on Rails community by adding new notes.
# File actionpack/lib/action_controller/test_process.rb, line 417 def assigns(key = nil) if key.nil? @response.template.assigns else @response.template.assigns[key.to_s] end end
for example, to use the @message instance variable in a view test,
assigns[:message] = @message
you could type
assigns[:foo] = @message
and then message would be available to the view as @foo.