github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

pluginaweek / styled_inputs

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 7
    • 1
  • Source
  • Commits
  • Network (1)
  • Downloads (7)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (7)
    • v0.1.1
    • v0.1.0
    • v0.0.5
    • v0.0.4
    • v0.0.3
    • v0.0.2
    • v0.0.1
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Adds automated styling of input fields with css classes — Read more

  cancel

http://www.pluginaweek.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Add gemspec 
obrie (author)
Tue Jun 09 20:35:39 -0700 2009
commit  db8983041cdeb93ab9f1ee53542d67d947848681
tree    d5728194112919e9cb0d7bd782c55f15704dedf7
parent  8ce106baa5f7d4c6ac6d5df33752edee9bc7fb0f
styled_inputs /
name age
history
message
file .gitignore Loading commit data...
file CHANGELOG.rdoc
file LICENSE
file README.rdoc
file Rakefile
file init.rb
directory lib/
file styled_inputs.gemspec
directory test/
README.rdoc

styled_inputs

styled_inputs adds automated styling of input fields with css classes.

Resources

API

  • api.pluginaweek.org/styled_inputs

Bugs

  • pluginaweek.lighthouseapp.com/projects/13289-styled_inputs

Development

  • github.com/pluginaweek/styled_inputs

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:

  • plugin_test_helper

To run against a specific version of Rails:

  rake test RAILS_FRAMEWORK_ROOT=/path/to/rails

Dependencies

  • Rails 2.0 or later
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server