Sha256: 5c747aeebe8710555ea0aa59933b64f28710071c7537e2a389503fd31042f3a6

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 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'}
  - @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

4 entries across 4 versions & 1 rubygems

Version Path
monkey_forms-0.0.18 test/sinatra/views/form.haml
monkey_forms-0.0.17 test/sinatra/views/form.haml
monkey_forms-0.0.16 test/sinatra/views/form.haml
monkey_forms-0.0.15 test/sinatra/views/form.haml