Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brentgreeff/default_classes_for_form_inputs
- Owner: brentgreeff
- License: mit
- Created: 2009-09-12T16:06:08.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-01-13T10:59:59.000Z (almost 14 years ago)
- Last Synced: 2024-11-15T04:55:45.443Z (5 days ago)
- Topics: rails
- Language: Ruby
- Homepage: http://www.brentgreeff.com/rails-plugins/default-classes-for-form-inputs
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
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