Ruby/Rails/Cookie
Материал из Wiki.crossplatform.ru
Use cookie
class HelloController < ApplicationController def set_cookie cookies[:my_name] = "AAAA" redirect_to :action => "show_cookie" end def show_cookie my_name = cookies[:my_name] render(:text => "Hello #{my_name}!") end end
<A href="http://www.crossplatform.ru/Code/RubyDownload/setGetCookie.zip">setGetCookie.zip( 87 k)</a>