def edit(request)
      render do |xml|
        xml.h2 "Update rack session"
        xml.p "Put marshalized and encoded with base64 ruby hash into the form"
        xml.form({
          :action  => action_path(:update),
          :method  => 'post',
          :enctype => 'application/x-www-form-urlencoded'
        }) do |form|
          form.input(:type => 'hidden', :name =>'_method', :value => 'put')
          form.textarea(:cols => 40, :rows => 10, :name => 'data') {}
          form.p do |p|
            p.input(:type => 'submit', :value => "Update")
          end
        end
      end
    end
def edit(request)
      render do |xml|
        xml.h2 "Update rack session"
        xml.p "Put marshalized and encoded with base64 ruby hash into the form"
        xml.form({
          :action  => action_path(:update),
          :method  => 'post',
          :enctype => 'application/x-www-form-urlencoded'
        }) do |form|
          form.input(:type => 'hidden', :name =>'_method', :value => 'put')
          form.textarea(:cols => 40, :rows => 10, :name => 'data') {}
          form.p do |p|
            p.input(:type => 'submit', :value => "Update")
          end
        end
      end
    end
Render form for submit new session data