Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

form_helper_css

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form_helper_css

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= form_helper_css

== Description

This plugin enhances the default tag helpers to automatically add CSS classes to form elements. It's similar to the enhanced_form_tag_helper plugin, but takes a different approach by directly intercepting the tag and content_tag methods, and should therefore work in all situations where form elements are created, especially the FormHelper and more exotic ones like button_to.

The following elements are enhanced:

  • tags get their type as class name
  • submit and reset buttons additionally get the class name button
  • password fields additionally get the class name text
  • tags get the class name text
  • and tags are not enhanced If any helper options already specify a class, nothing will be changed. If you don't want a class to be added, pass :class => nil. There is a single option which can be set in the following manner: ActionView::Helpers::TagHelper::FORM_HELPER_CSS_OPTIONS.merge!(:append => true) If set to true, then even if a class is specified, the magical classes will be appended to the output. == License The form_helper_css plugin is released under the MIT license. == Author Philip Hallstrom == Original Author Markus Koller http://snafu.diarrhea.ch 24 December 2006

FAQs

Package last updated on 30 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc