Sha256: bf5d80511712a140e6961b7e7e712b5f461bf13764b8c5ab24902a6ce87e1c0a

Contents?: true

Size: 991 Bytes

Versions: 6

Compression:

Stored size: 991 Bytes

Contents

= sinatra-formhelpers
  
<code>sinatra-formhelpers</code> is a suite of form helpers for sinatra.  

  link "google", "http://www.google.com"            # Returns "<a href='http://www.google.com'>google</a>"
  label :person, :first_name         # Returns "<label for='person_first_name'>First Name</label>"
  text :person, :first_name  # Returns "<input name='person[first_name]' id='person_first_name' value='' type='text' />"

There are also helpers for (area, submit, image, radio, checkbox, and select)

To install it, run:

sudo gem install twilson63-sinatra-formhelpers -s http://gems.github.com

To include it in a Sinatra application, write:

  require 'rubygems'
  require 'sinatra/formhelpers'
      
If you're subclassing <code>Sinatra::Base</code>, then you need to call
<code>helpers</code> manually:

  class MyApp < Sinatra::Base
    helpers Sinatra::FormHelpers
    # ...
  end
        
              
== Copyright

Copyright (c) 2009 twilson63. See LICENSE for details.
  

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twilson63-sinatra-formhelpers-0.1.1 README.rdoc
twilson63-sinatra-formhelpers-0.2.0 README.rdoc
twilson63-sinatra-formhelpers-0.2.1 README.rdoc
twilson63-sinatra-formhelpers-0.3.0 README.rdoc
twilson63-sinatra-formhelpers-0.3.4 README.rdoc
twilson63-sinatra-formhelpers-0.3.5 README.rdoc