forked from formtastic/formtastic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CHANGELOG
186 lines (140 loc) · 10.4 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[master]
* Fixed that classes in :button_html were being merged into :wrapper_html
* Fixed that :include_blank was being ignored (always false) for multi selects
1.2.1
* test suite compatibilities with Rails 3.0.3
1.2.1.beta3
* Fixed bad merge related to :boolean inputs in 1.2.1.beta
1.2.1.beta2
* Fixed typos in gemspec post-install message
1.2.1.beta
* Fixed that unchecking :boolean inputs would not send the correct params (and not persist the change the the DB)
* Fixed that :boolean inputs checked state was not reflecting the database/model value
* Fixed that init.rb and rails/init.rb were not included in the gem (affecting Rails 2)
1.2.0
* Changed default_text_area_width to nil, overlooked in recent CSS/width changes
* Improved documentation
1.2.0.beta2
* Added :wrapper_html functionality to commit_button() to match what input() does
* Deprecated the :class option on commit_button(), use :wrapper_html instead
* Added hpricot as missing development dependency
* Improved documentation
1.2.0.beta
* New Stuff
* Added support for Paperclip's questionable use of multiple error keys on a single attribute, so errors on Paperclip :file inputs Just Work
* Added ability for the error and hint class to be overridden with :hint_class and :error_class, and configurable defaults app-wide
* Added basic support for multiple forms in the same document by allowing the element ids to be prefixed with the :namespace option on semantic_form_for
* Added a fallback to Rails' helpers.label key if Formtastic label translation are not found
* Added support for default_text_area_width
* Added support for #persisted? over #new_record? (ActiveModel)
* Added the 'required' logic to attributes with validates_inclusion_of validation, in addition to validates_presence_of
* Added new HTML5 :as => :email input (Rails 3)
* Added new HTML5 :as => :phone input (Rails 3)
* Added new HTML5 :as => :search input (Rails 3)
* Added new HTML5 :as => :url input (Rails 3)
* Added the ability for the :collection option to accept a string of HTML (like the output from grouped_options_for_select), rather than just Arrays, Hashes, collections, etc.
* Added the ability to set your own form class, instead of 'formtastic'
* Added maxlength attributes to inputs if it can be determined via the ValidationReflection plugin or ActiveModel validation reflections
* Added the ability to override the form class (Post => "post") through an :as option on semantic_form_for option
* Added the ability to customize the order for specific types of inputs. This is configured on a type basis and if a type is not found it willfall back to the default order as defined by @@inline_order
* Added :first as a new rendering choice for the errors on each input
* Added custom_inline_order to allow inline ordering per input type
* Added the ability to override the generator templates in Rails 3
* Fixes
* Fixed invalid HTML generated by Rails' hidden inputs on checkboxes (by rendering our own hidden tag in a more deliberate place)
* Fixed a bunch of invalid i18n key defaults
* Fixed that 'required' classes and logic were not being applied to :check_boxes and :radio inputs
* Fixed CSS bugs around Firefox's quirks with form elements that resulted in overflow/scroll bar issues
* Fixed that errors on fields with association were not marking the wrapping tag with the error class
* Fixed CSS where FF was displaying extra scroll bars on .check_boxes and .radio inputs (and the choices within them)
* Changes
* Changed that we were defaulting to a :select input for columns ending in _id, instead of columns with an appropriate associations
* Deprecated a bunch of aliased method names that should no longer be used
* Removed deprecated :selected, :checked and :default options
* Changed the width styling for string, numeric, password and other basic inputs, defaults to 75% unless the size attribute is present
* Changed string, numeric, password and other basic inputs' default text field size config to nil instead of 50, meaning the size attribute will be ommitted from most inputs, makeing styling easier, and custom sizes with the size attribute more deliberate
* Changed string, numeric, password and other basic inputs to no longer add the size attribute based on column information (the default config is applied, unless it's nil)
* Changed text input css behaviour updated to be similar to string etc
* Changed text inputs to no longer include a default cols attribute, specify it with :input_html if you need it, but the value we were using was useless... also beefed up spec coverage
* Removed :label calls from the generated ERB in the form generator (i18n is preferred)
* Changed that :select inputs for HABTM associations would ignore the :include_blank option
* Changed the default method on collections from Model.find(:all) to Model.all
* Removed the deprecated formtastic_stylesheets generator
* Changed the minimum Rails version to 2.3.7, which the earliest version which the specs pass with
* Changed :password inputs to be sized by percentage (like other string-ish inputs), rather then em-based
1.1.0
* documentation changes only
1.1.0.beta [Specs passed against Rails 2.3.8, 3.0.0.rc & 3.0.0]
* Changed semantic_remote_form_for to allow for unobstrusive javascript / :remote option (rails3)
* Changed spec_helper to support Rails 2 with RSpec or Rails 3 with RSpec 2 environments
* Changed Rakefile to initalize the correct testing framework for the enviroment
* Changed i18n dependency to >= 0.4
* Fixed use of model_name.human instead of model_name.human_name (rails3)
* Fixed use of deprecated Errors#on_base
* Fixed use of ActionController::RecordIdentifier#singular_class_name (rails3)
* Added railtie to perform initialization tasks after the rails framework is available (rails3)
* Added compatible install and form helpers (rails3)
* Added support for ActiveModel Validations, thanks to Guillaume Belleguic (rails3)
1.0.1
* fixed "already initialised constant" warnings on boot
1.0.0
* nothing changed from rc2
1.0.0.rc2
* Fixed that :label=>false didn't disable the label on checkboxes/radiobuttons (#331)
* Added full support of :input_html options for hidden fields
1.0.0.rc
* Fixed that :checked_value and :unchecked_value options were being passed down into the HTML tags as attributes
1.0.0.beta4
* ensure i18n < 0.4 is listed as a dependency in the gemspec
1.0.0.beta3
* Added :ignore_date option to time inputs (#308)
* Fixed inputs_for_nested_attributes returning out of the proc on has_many associated nested models.
* Fixed with_custom_field_error_proc to use ensure for restoring default field_error_proc and to store it in a local variable instead of in a class variable (nested calls were problematic due to the globalness of class variables)
1.0.0.beta2
* Added default escaping of html entities in labels and hints (#292, #299)
* Added/Fixed that :value_method and :label_method were not being used for simple collections (like Arrays)
* Added some more compatibility for Mongooid and other ORMs by checking for reflection information before calling it
* Fixed deprecation warnings in Rails 2.3.6 and newer
* Fixed a bug where :check_boxes and :radio were using method instead of :label option
* Fixed a conflict where i18n lookups were failing when an attribute and model have the same name
* Fixed some html that was not marked as safe
1.0.0.beta
* Fixed :radio and :check_boxes inputs so that the legend no longer includes a <label> with a `for` attribute pointing to an input that doesn't exist (#253)
* Fixed that some inputs had invalid 'find_options' attribute (#262)
* Fixed that we were calling html_safe! when it was not always available
* Added the ability for :input_html to now accept an option of :size => nil, to exclude the :size attribute altogether (#267)
0.9.10
* Fixed i18n incompatibility with Rails 2.3.8 by reverting two i18n patches pulled in from the rails3 branch
0.9.9
* Changed date/time inputs to default to nil instead of Time.now when the object has no value (due to deprecation warning, #240)
* Changed the behaviour of associations with a :class_name option to be more consistent with what Rails expects
* Fixed issues relating to Rails 2.3.6 automatically escaping ERB
* Fixed issues with Ruby 1.9.1 and Haml
* Fixed use of deprecated {{key}} syntax in i18n interpolation (thanks to Hans Petter Wilhelmsen)
* Added the :disabled option to check_boxes input
* Added translation support for nested models (thanks to Toni Tuominen)
0.9.8
* Deprecated :selected/:checked options, see http://wiki.github.com/justinfrench/formtastic/deprecation-of-selected-option
* Changed CSS rules for fieldset lists to be more specific
* Changed that radio and checkbox inputs used to associate the legend label with the first choice's input (#101)
* Changed the generators to use |f| rather than |form| (#151)
* Changed the behaviour of :selected/:checked options to address several bugs and inconsistencies (#152)
* Changed CSS for input width property to max-width, allowing a size attribute to still be set
* Fixed an issue where label_str_method not honoured if the object is an ActiveRecord object
* Fixed incorrect html class for namespaced objects ("/" replaced with "_")
* Fixed compatibility issue with SearchLogic (#155)
* Fixed an issue where label_str_method was not being overridden with i18n
* Fixed a button text issue with Rails 2.x in which human_name on multi-word models returned one word (eg Ticketrequest) (#153)
* Fixed the behaviour of select inputs when the belongs_to or has_many association has a special :class_name option
* Fixed line numbers from eval'd code, to help when debugging
* Fixed CSS issue that hidden fields were not always hidden (Chrome for example) (#209)
* Fixed and improved CSS with nested fieldsets and legends
* Fixed date/time inputs where :include_seconds => true
* Fixed that inline hints were still being rendered on hidden inputs
* Fixed broken CSS declaration missing a colon
* Added configuration preferences for row and column attributes on textareas
* Added semantic_errors helper and CSS (for all errors on an object)
* Added :filename to the list of @@file_methods, to support carrierwave plugin (#156)
* Added a Formtastic::LayoutHelper with formtastic_stylesheets helper method for linking to all Formtastic CSS files
* Added labels option to date/time/datetime fields to customise the label of each part of the set (year, month, etc)
* Added many improvements to the README and docs