Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twilson63/sinatra-formhelpers
Suite of FormHelpers for Sinatra
https://github.com/twilson63/sinatra-formhelpers
Last synced: 3 months ago
JSON representation
Suite of FormHelpers for Sinatra
- Host: GitHub
- URL: https://github.com/twilson63/sinatra-formhelpers
- Owner: twilson63
- License: other
- Created: 2009-06-15T01:37:51.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2013-01-02T05:22:16.000Z (almost 12 years ago)
- Last Synced: 2024-07-17T16:23:04.047Z (4 months ago)
- Language: Ruby
- Homepage: http://twilson63.github.com/sinatra-formhelpers
- Size: 240 KB
- Stars: 12
- Watchers: 4
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= sinatra-formhelpers
sinatra-formhelpers
is a suite of form helpers for sinatra.link "google", "http://www.google.com" # Returns "google"
label :person, :first_name # Returns "First Name"
text :person, :first_name # Returns ""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 subclassingSinatra::Base
, then you need to callhelpers
manually:class MyApp < Sinatra::Base
helpers Sinatra::FormHelpers
# ...
end
== CopyrightCopyright (c) 2009 twilson63. See LICENSE for details.