Skip to content

pluginaweek/styled_inputs

Repository files navigation

styled_inputs adds automated styling of input fields with css classes.

API

Bugs

Development

Testing

Source

  • git://github.com/pluginaweek/styled_inputs.git

Mailing List

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.

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" />
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" />

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
  • Rails 2.0 or later

About

Adds automated styling of input fields with css classes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages