method
assign
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
assign(variable, value)
private
Hide source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 674 def assign(variable, value) append_to_function_chain!("#{variable} = #{@generator.send(:javascript_object_for, value)}") end