title: Decode a signed cookie in rails?
body: <p>So I have a signed cookie that has the following value</p>
  
  <pre><code>IjVvVGdIOW1pUU44Qkk5NFZZUl9Udnci--a3c3b748fd207ba1c537b590dd458b4855677146
  </code></pre>
  
  <p>I need to decode it and get the following value</p>
  
  <pre><code>5oTgH9miQN8BI94VYR_Tvw
  </code></pre>
  
  <p>I tried something like </p>
  
  <pre><code>Base64.decode64(cookie_value.split('--').first)
  </code></pre>
  
  <p>but it gives me the wrong value, it adds these damn slashes in the string so I end up with </p>
  
  <pre><code>"\"5oTgH9miQN8BI94VYR_Tvw\"" 
  </code></pre>