This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit db8983041cdeb93ab9f1ee53542d67d947848681
tree d5728194112919e9cb0d7bd782c55f15704dedf7
parent 8ce106baa5f7d4c6ac6d5df33752edee9bc7fb0f
tree d5728194112919e9cb0d7bd782c55f15704dedf7
parent 8ce106baa5f7d4c6ac6d5df33752edee9bc7fb0f
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
CHANGELOG.rdoc | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
lib/ | ||
| |
styled_inputs.gemspec | ||
| |
test/ |
README.rdoc
styled_inputs
styled_inputs adds automated styling of input fields with css classes.
Resources
API
Bugs
Development
Source
- git://github.com/pluginaweek/styled_inputs.git
Description
Normally, it is difficult to style inputs without adding classes to them so that you can specify css for each type of input. Since this can become a tedious manual task, styled_inputs automatically adds a classes to each input that is generated either by tag or form helpers. The class that is specified is the type of input being generated.
Usage
Tags
text_field_tag('name') # => <input class="text" id="name" name="name" type="text" />
hidden_field_tag('name') # => <input class="hidden" id="name" name="name" type="hidden" />
Form helpers
text_field(:person, :name) # => <input class="text" id="person_name" name="person[name]" size="30" type="text" /> hidden_field(:person, :name) # => <input class="hidden" id="person_name" name="person[name]" type="hidden" />
Testing
Before you can run any tests, the following gem must be installed:
To run against a specific version of Rails:
rake test RAILS_FRAMEWORK_ROOT=/path/to/rails
Dependencies
- Rails 2.0 or later








