default classes for form inputs
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
MIT-LICENSE
README.rdoc
Rakefile
VERSION
default_classes_for_form_inputs.gemspec
init.rb

README.rdoc

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 © 2009 [Brent Greeff], released under the MIT license