Dillon Welch
cac943e891
Add frozen_string_literal in all .rb files
...
I noticed these files all had strings such as "", " ", "_" that were
allocated each time some common methods were called, over 1000x on a
page in my app. This comment freezes all of these strings such that
they're only allocated once, saving many KB of memory allocation.
2017-11-27 17:06:18 -08:00
Seth Veale
ae526b30c7
Added a minlength validation on first attempt? Wooo - wish I could put bangs in commit messages *bang*
2016-08-22 10:32:54 +12:00
Renato Mascarenhas
34312c9fbc
Use 1.9 hash style on code and docs.
2013-01-28 19:02:59 -02:00
Rafael Mendonça França
86ac74458c
Eager load SimpleFrom using the Rails API
...
Closes #478
2013-01-02 15:45:24 -03:00
Carlos Antonio da Silva
73aa9da202
Small doc improvements
2011-12-10 15:55:27 -02:00
José Valim
2d41fafe9b
Move required to html5 component.
2011-12-05 10:44:02 +01:00
Rafael Mendonça França
cc5fd25e48
Add readonly component. Closes #378
2011-12-04 23:41:54 -02:00
José Valim
f883b20b94
Make min_max also a component.
2011-12-04 16:31:13 +01:00
José Valim
4391685bfd
Make html5 a wrapper option.
2011-12-04 16:15:32 +01:00
José Valim
94dab68cd7
Create more components. Make explicit the difference between helpers and components. Add default options to wrappers.
2011-12-04 14:57:12 +01:00
José Valim
10f2e67708
Make pattern a component.
2011-12-04 13:40:04 +01:00
José Valim
ce19f2b898
Make maxlength a component.
2011-12-04 13:14:39 +01:00
José Valim
5ee02bdd2c
Make required a component.
2011-12-04 13:03:09 +01:00
José Valim
fcd049adc6
Convert disabled to a component.
2011-12-04 12:15:22 +01:00
José Valim
c6e6dbd62d
Use the root wrapper and removing rendering responsibility from input.
2011-09-08 16:03:26 +02:00
José Valim
a4655ba845
Refactor Inputs::Base into helpers and make :on based on the resource status.
2011-09-03 12:00:23 +02:00
Rafael Mendonça França
4a4c99f7fa
Add support for maxlenght to text area inputs. Closes #232
2011-08-30 20:52:31 -03:00
José Valim
ebde237bf2
Move placeholders to a component.
...
This commit changes Inputs::Base to handle input_html_options on initialization and allows components to return nil.
2010-11-07 10:43:20 +01:00
José Valim
ab60a080b3
Split boolean inputs into their own class so we can change label input order.
2010-07-06 11:24:12 +02:00
José Valim
7d7c6cda72
Code refactoring finished. Now tests one.
2010-01-09 16:05:02 +01:00
José Valim
42830967d7
Most of refactoring done.
2010-01-09 15:39:14 +01:00
José Valim
075e7b23b6
Temporary refactoring.
2010-01-09 14:34:52 +01:00
José Valim
7329eb4c72
Make wrapper a component.
2009-12-10 11:01:44 -02:00
José Valim
65ba8dabbd
Move components to a folder named components.
2009-12-09 18:48:00 -02:00