Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brentgreeff/default_classes_for_form_inputs

default classes for form inputs
https://github.com/brentgreeff/default_classes_for_form_inputs

rails

Last synced: about 7 hours ago
JSON representation

default classes for form inputs

Awesome Lists containing this project

README

        

= Default Classes for Form Inputs

== Install

gem install default_classes_for_form_inputs

== Usage

* Just use the rails form helpers

<%= f.text_field :something, :class => 'text' %>

* But leave out the class

<%= f.text_field :something %>

<%= text_field_tag :something %> (works too.)

You get default classes for different inputs.

'text' for type="text"

'password text' for type="password"

'submit' for type="submit"

More coming...

Copyright (c) 2009 [Brent Greeff], released under the MIT license