Sha256: a21f6214176ee74b7dc33a1139151fe8bc08011b24c0598df1028acbe1223d3e

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

%h1 Welcome to Monkey Forms Page #{ @page }

%h3
  %a{:href => "/"} Page 1
  |
  %a{:href => "/2"} Page 2
  |
  %a{:href => "/3"} Page 3

%h3 Form Values
= @form.attributes.inspect

%p
  As you click from page to page, note that your form
  values are saved. They are saved in a cookie!

%form{:action => '/haml_form', :method => 'post', :enctype => 'multipart/form-data'}
  - @form.class.attributes.each do |name|
    %input{:type => 'text', :id => "form_#{name}", :name => "form[#{name}]", :value => @form.send(name)}
    %label{:for => "form_#{name}"}= name

    %br

  %input{:type => 'submit'}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monkey_forms-0.0.20 test/sinatra/views/form.haml
monkey_forms-0.0.19 test/sinatra/views/form.haml