title: How to store array of values in cookies using rails?
body: <p>I want to save an array of values in cookie. I have a method called add_names. Whenever this method has been called i need to save the name in the cookie. I have tried the below code. But it's not working, it's keeping only the last value.</p>
  
  <pre><code>def add_names(name)
    cookies[:user_names] = name
  end
  </code></pre>
  
  <p>Please suggest me a idea to do this. Thanks in advance.</p>