= private = protected
This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.
These similar methods exist in v7.1.3.2:
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 460 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.