Project

need_label

0.0
No commit activity in last 3 years
No release in over 3 years
A class is outputted about an indispensable input item.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 2.17
>= 0
>= 0
~> 3.7
~> 1.3

Runtime

>= 3.0.7
 Project Readme

need_label¶ ↑

Need_label outputs a class attribute to the indispensable input item of rails. An indispensable input can be expressed by combining with css.

How to use¶ ↑

(1) Add your Gemfile.

gem "need_label"

(2) Add validation on your model.

class User < ActiveRecord::Base
  validates :name, :presence => true
end

(3) Add css. (Example)

label.need-label{
  border-bottom: inset 2px red;
}

Copyright © 2011 Yamamoto Kazuhisa. See LICENSE.txt for further details.