Cookies Management in Ruby on Rails

Example #1:
This program sets cookie (customer) and reads.

Controller

  1. span style="color:#996600;">"set""xxxxx"

Views


set.html.erb
  1. span style="color:#996600;">"here", :action=>"read"%> read the cookie
read.html.erb
  1.