public
Description: A Rails plugin to improve forms. Includes a better FormBuilder and DRYness for form fields.
Homepage: http://blog.withoutincident.com
Clone URL: git://github.com/Shadowfiend/awesome_fields.git
Based on a patch by faithfulgeek: added an alias for decimal_field to 
string_field and switched other aliases to string_field instead of 
text_field to add support for :long.
shadowfiend (author)
Fri Jun 27 22:50:14 -0700 2008
commit  c411770fbd762d66d5693d15a639547e2c8842f9
tree    d3d2db86e40e1cb4c3b04a8709f99ec7db660aff
parent  5ecfa17dc9112bb0c6c6720db1ac50491448df9a
...
134
135
136
137
138
139
 
 
 
 
140
141
142
...
134
135
136
 
 
 
137
138
139
140
141
142
143
0
@@ -134,9 +134,10 @@ module AwesomeFields
0
     # Sets up aliases for use by +field+.
0
     def self.included(mod)
0
       mod.class_eval do
0
- alias :integer_field :text_field
0
- alias :fixnum_field :text_field
0
- alias :nil_class_field :text_field
0
+ alias :integer_field :string_field
0
+ alias :fixnum_field :string_field
0
+ alias :nil_class_field :string_field
0
+ alias :decimal_field :string_field
0
       end
0
     end
0
 

Comments

    No one has commented yet.