Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 395 lines (225 sloc) 16.613 kb
2e98e0f @rafaelfranca Fix CHANGELOG [ci skip]
rafaelfranca authored
1 ## Rails 3.2.9 (unreleased) ##
6764b7b @spastorino Add missing CHANGELOG entries
spastorino authored
2
7d17cd2 @rafaelfranca Merge pull request #7659 from HugoLnx/template_error_no_matches_rebased
rafaelfranca authored
3 * `assert_template` is no more passing with what ever string that matches
4 with the template name.
5
6 Before when we have a template `/layout/hello.html.erb`, `assert_template`
7 was passing with any string that matches. This behavior allowed false
8 positive like:
9
10 assert_template "layout"
11 assert_template "out/hello"
12
13 Now it only passes with:
14
15 assert_template "layout/hello"
16 assert_template "hello"
17
18 Fixes #3849.
19
20 *Hugolnx*
21
d77d4a8 @rafaelfranca New CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
22 * Handle `ActionDispatch::Http::UploadedFile` like `Rack::Test::UploadedFile`, don't call to_param on it. Since
23 `Rack::Test::UploadedFile` isn't API compatible this is needed to test file uploads that rely on `tempfile`
24 being available.
25
26 *Tim Vandecasteele*
27
61d5d2d @rafaelfranca Merge pull request #7668 from Draiken/fix_issue_6497
rafaelfranca authored
28 * Fixed a bug with shorthand routes scoped with the `:module` option not
29 adding the module to the controller as described in issue #6497.
30 This should now work properly:
31
32 scope :module => "engine" do
33 get "api/version" # routes to engine/api#version
34 end
35
36 *Luiz Felipe Garcia Pereira*
37
98f8021 @rafaelfranca Revert "Revert "Respect `config.digest = false` for `asset_path`""
rafaelfranca authored
38 * Respect `config.digest = false` for `asset_path`
39
40 Previously, the `asset_path` internals only respected the `:digest`
41 option, but ignored the global config setting. This meant that
42 `config.digest = false` could not be used in conjunction with
43 `config.compile = false` this corrects the behavior.
44
45 *Peter Wagenet*
46
dd76b3b @senny log 404 status when ActiveRecord::RecordNotFound was raised (#7646)
senny authored
47 * Fix #7646, the log now displays the correct status code when an exception is raised.
48
49 *Yves Senn*
50
4b19855 @nashby correct handling of date selects when using both disabled and discard op...
nashby authored
51 * Fix handling of date selects when using both disabled and discard options.
52 Fixes #7431.
53
54 *Vasiliy Ermolovich*
55
c091fae @rafaelfranca Merge pull request #7410 from sandeepravi/default_options_helper_value
rafaelfranca authored
56 * Fix select_tag when option_tags is nil.
57 Fixes #7404.
58
59 *Sandeep Ravichandran*
60
8e2a05b @sikachu Do not include application.js if it doesn't exists
sikachu authored
61 * `javascript_include_tag :all` will now not include `application.js` if the file does not exists. *Prem Sichanugrist*
62
2e04a34 @brainopia Update changelog to reflect support of cookie jar options for all
brainopia authored
63 * Support cookie jar options (e.g., domain :all) for all session stores.
64 Fixes GH#3047, GH#2483.
65
66 *Ravil Bayramgalin*
67
bccc35b @jeremy Backport 5c51cd0: #send_file leans on Rack::Sendfile to X-Accel-Redirect...
jeremy authored
68 * Performance Improvement to send_file: Avoid having to pass an open file handle as the response body. Rack::Sendfile
69 will usually intercept the response and just uses the path directly, so no reason to open the file. This performance
70 improvement also resolves an issue with jRuby encodings, and is the reason for the backport, see issue #6844.
71
72 *Jeremy Kemper & Erich Menge*
73
2e98e0f @rafaelfranca Fix CHANGELOG [ci skip]
rafaelfranca authored
74
ddedf5d @spastorino Add release date to CHANGELOGs
spastorino authored
75 ## Rails 3.2.8 (Aug 9, 2012) ##
6764b7b @spastorino Add missing CHANGELOG entries
spastorino authored
76
e91e4e8 @spastorino Do not mark strip_tags result as html_safe
spastorino authored
77 * There is an XSS vulnerability in the strip_tags helper in Ruby on Rails, the
78 helper doesn't correctly handle malformed html. As a result an attacker can
79 execute arbitrary javascript through the use of specially crafted malformed
80 html.
81
82 *Marek from Nethemba (www.nethemba.com) & Santiago Pastorino*
83
6d0526d @spastorino escape select_tag :prompt values
spastorino authored
84 * When a "prompt" value is supplied to the `select_tag` helper, the "prompt" value is not escaped.
85 If untrusted data is not escaped, and is supplied as the prompt value, there is a potential for XSS attacks.
86 Vulnerable code will look something like this:
87 select_tag("name", options, :prompt => UNTRUSTED_INPUT)
88
89 *Santiago Pastorino*
2e98e0f @rafaelfranca Fix CHANGELOG [ci skip]
rafaelfranca authored
90
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
91 * Reverted the deprecation of `:confirm`. *Rafael Mendonça França*
92
93 * Reverted the deprecation of `:disable_with`. *Rafael Mendonça França*
6764b7b @spastorino Add missing CHANGELOG entries
spastorino authored
94
e826a5c @rafaelfranca Revert "Deprecate `:mouseover` options for `image_tag` helper."
rafaelfranca authored
95 * Reverted the deprecation of `:mouseover` option to `image_tag`. *Rafael Mendonça França*
96
f50a5d2 @rafaelfranca Revert "Deprecate link_to_function and button_to_function helpers"
rafaelfranca authored
97 * Reverted the deprecation of `button_to_function` and `link_to_function` helpers.
98
99 *Rafael Mendonça França*
100
6764b7b @spastorino Add missing CHANGELOG entries
spastorino authored
101
d1b9cf2 @tenderlove updating release date
tenderlove authored
102 ## Rails 3.2.7 (Jul 26, 2012) ##
125dfdf @tenderlove updating changelogs
tenderlove authored
103
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
104 * Do not convert digest auth strings to symbols. CVE-2012-3424
105
106 * Bump Journey requirements to 1.0.4
107
108 * Add support for optional root segments containing slashes
125dfdf @tenderlove updating changelogs
tenderlove authored
109
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
110 * Fixed bug creating invalid HTML in select options
125dfdf @tenderlove updating changelogs
tenderlove authored
111
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
112 * Show in log correct wrapped keys
125dfdf @tenderlove updating changelogs
tenderlove authored
113
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
114 * Fix NumberHelper options wrapping to prevent verbatim blocks being rendered instead of line continuations.
125dfdf @tenderlove updating changelogs
tenderlove authored
115
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
116 * ActionController::Metal doesn't have logger method, check it and then delegate
125dfdf @tenderlove updating changelogs
tenderlove authored
117
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
118 * ActionController::Caching depends on RackDelegation and AbstractController::Callbacks
125dfdf @tenderlove updating changelogs
tenderlove authored
119
120
8381d39 @tenderlove updating changelogs
tenderlove authored
121 ## Rails 3.2.6 (Jun 12, 2012) ##
8d4f63a @drogus Include routes.mounted_helpers into integration tests
drogus authored
122
ceb8ec3 @tenderlove updating changelogs with security fixes
tenderlove authored
123 * nil is removed from array parameter values
124
8381d39 @tenderlove updating changelogs
tenderlove authored
125 CVE-2012-2694
126
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
127 * Deprecate `:confirm` in favor of `':data => { :confirm => "Text" }'` option for `button_to`, `button_tag`, `image_submit_tag`, `link_to` and `submit_tag` helpers.
128
129 *Carlos Galdino*
130
f550d4d @drogus Allow to use mounted helpers in ActionView::TestCase
drogus authored
131 * Allow to use mounted_helpers (helpers for accessing mounted engines) in ActionView::TestCase. *Piotr Sarnacki*
132
8d4f63a @drogus Include routes.mounted_helpers into integration tests
drogus authored
133 * Include mounted_helpers (helpers for accessing mounted engines) in ActionDispatch::IntegrationTest by default. *Piotr Sarnacki*
134
b13d89e @rafaelfranca Add release date of 3.2.5 on the CHANGELOG
rafaelfranca authored
135
136 ## Rails 3.2.5 (Jun 1, 2012) ##
137
138 * No changes.
139
140
d3e5d1c @tenderlove updating changelogs
tenderlove authored
141 ## Rails 3.2.4 (May 31, 2012) ##
342b54a @rafaelfranca Add CHANGELOG entry.
rafaelfranca authored
142
616c91d @iHiD Deprecate old APIs for highlight, excerpt and word_wrap
iHiD authored
143 * Deprecate old APIs for highlight, excerpt and word_wrap *Jeremy Walker*
144
857697b @rafaelfranca Fix CHANGELOGS
rafaelfranca authored
145 * Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to`, `button_tag` and `submit_tag` helpers.
146
147 *Carlos Galdino + Rafael Mendonça França*
148
149 * Deprecate `:mouseover` option for `image_tag` helper. *Rafael Mendonça França*
1aff772 @rafaelfranca Deprecate `:mouseover` options for `image_tag` helper.
rafaelfranca authored
150
342b54a @rafaelfranca Add CHANGELOG entry.
rafaelfranca authored
151 * Deprecate `button_to_function` and `link_to_function` helpers. *Rafael Mendonça França*
152
d3e5d1c @tenderlove updating changelogs
tenderlove authored
153 * Don't break Haml with textarea newline fix. GH #393, #4000, #5190, #5191
154
155 * Fix options handling on labels. GH #2492, #5614
156
157 * Added config.action_view.embed_authenticity_token_in_remote_forms to deal
158 with regression from 16ee611fa
159
160 * Set rendered_format when doing render :inline. GH #5632
161
162 * Fix the redirect when it receive blocks with arity of 1. Closes #5677
342b54a @rafaelfranca Add CHANGELOG entry.
rafaelfranca authored
163
44aca7b @tenderlove adding security notifications to CHANGELOGs
tenderlove authored
164 * Strip [nil] from parameters hash. Thanks to Ben Murphy for
165 reporting this! CVE-2012-2660
166
b13d89e @rafaelfranca Add release date of 3.2.5 on the CHANGELOG
rafaelfranca authored
167
342b54a @rafaelfranca Add CHANGELOG entry.
rafaelfranca authored
168 ## Rails 3.2.3 (March 30, 2012) ##
8674823 @spastorino Add CHANGELOG entry
spastorino authored
169
beba826 @drogus Lazy load `default_form_builder` if it's passed as a string
drogus authored
170 * Allow to lazy load `default_form_builder` by passing a `String` instead of a constant. *Piotr Sarnacki*
171
dd69076 @spastorino Add missing CHANGELOG entry
spastorino authored
172 * Fix #5632, render :inline set the proper rendered format. *Santiago Pastorino*
173
b395ca1 @spastorino Add missing CHANGELOG entry
spastorino authored
174 * Fix textarea rendering when using plugins like HAML. Such plugins encode the first newline character in the content. This issue was introduced in https://github.com/rails/rails/pull/5191 *James Coleman*
175
13fe190 @spastorino Remove the leading \n added by textarea on assert_select
spastorino authored
176 * Remove the leading \n added by textarea on assert_select. *Santiago Pastorino*
177
d646d9d @drogus Added config.action_view.embed_authenticity_token_in_remote_forms
drogus authored
178 * Add `config.action_view.embed_authenticity_token_in_remote_forms` (defaults to true) which allows to set if authenticity token will be included by default in remote forms. If you change it to false, you can still force authenticity token by passing `:authenticity_token => true` in form options *Piotr Sarnacki*
179
16ee611 @dhh Do not include the authenticity token in forms where remote: true as aja...
dhh authored
180 * Do not include the authenticity token in forms where remote: true as ajax forms use the meta-tag value *DHH*
181
520571a @spastorino Turn off verbose mode of rack-cache, we still have X-Rack-Cache to check...
spastorino authored
182 * Turn off verbose mode of rack-cache, we still have X-Rack-Cache to
183 check that info. Closes #5245. *Santiago Pastorino*
184
8674823 @spastorino Add CHANGELOG entry
spastorino authored
185 * Fix #5238, rendered_format is not set when template is not rendered. *Piotr Sarnacki*
186
3bfd651 @vijaydev changelog updates [ci skip]
vijaydev authored
187 * Upgrade rack-cache to 1.2. *José Valim*
188
189 * ActionController::SessionManagement is deprecated. *Santiago Pastorino*
190
db743ff @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
191 * Since the router holds references to many parts of the system like engines, controllers and the application itself, inspecting the route set can actually be really slow, therefore we default alias inspect to to_s. *José Valim*
3bfd651 @vijaydev changelog updates [ci skip]
vijaydev authored
192
db743ff @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
193 * Add a new line after the textarea opening tag. Closes #393 *Rafael Mendonça França*
3bfd651 @vijaydev changelog updates [ci skip]
vijaydev authored
194
195 * Always pass a respond block from to responder. We should let the responder to decide what to do with the given overridden response block, and not short circuit it. *sikachu*
196
197 * Fixes layout rendering regression from 3.2.2. *José Valim*
8674823 @spastorino Add CHANGELOG entry
spastorino authored
198
db743ff @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
199
200 ## Rails 3.2.2 (March 1, 2012) ##
2e5ec3b @josevalim Merge check box fixes from remote-tracking branch 'cantonio/checkbox-hid...
josevalim authored
201
82d6ded @spastorino Fix CHANGELOG
spastorino authored
202 * Format lookup for partials is derived from the format in which the template is being rendered. Closes #5025 part 2 *Santiago Pastorino*
110b43c @spastorino Add CHANGELOG entry
spastorino authored
203
82d6ded @spastorino Fix CHANGELOG
spastorino authored
204 * Use the right format when a partial is missing. Closes #5025. *Santiago Pastorino*
b122968 @spastorino Add CHANGELOG entry
spastorino authored
205
567ac65 @sikachu Fix override API response bug in respond_with
sikachu authored
206 * Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
207
2e5ec3b @josevalim Merge check box fixes from remote-tracking branch 'cantonio/checkbox-hid...
josevalim authored
208 * check_box helper with :disabled => true will generate a disabled hidden field to conform with the HTML convention where disabled fields are not submitted with the form.
209 This is a behavior change, previously the hidden tag had a value of the disabled checkbox.
210 *Tadas Tamosauskas*
211
8674823 @spastorino Add CHANGELOG entry
spastorino authored
212
97e8d1d @fxn CHANGELOG revision for v3.2.1
fxn authored
213 ## Rails 3.2.1 (January 26, 2012) ##
214
215 * Documentation improvements.
216
217 * Allow `form.select` to accept ranges (regression). *Jeremy Walker*
218
219 * `datetime_select` works with -/+ infinity dates. *Joe Van Dyk*
220
221
f36dcaf @dhh Preparing for 3.2.0 release
dhh authored
222 ## Rails 3.2.0 (January 20, 2012) ##
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
223
ae7037e @guilleiguaran Update CHANGELOG and docs for config.assets.logger
guilleiguaran authored
224 * Setting config.assets.logger to false turn off Sprockets logger *Guillermo Iguaran*
225
ed0f0ad @carlosantoniodasilva Update changelog
carlosantoniodasilva authored
226 * Add `config.action_dispatch.default_charset` to configure default charset for ActionDispatch::Response. *Carlos Antonio da Silva*
227
228 * Deprecate setting default charset at controller level, use the new `config.action_dispatch.default_charset` instead. *Carlos Antonio da Silva*
229
230 * Deprecate ActionController::UnknownAction in favour of AbstractController::ActionNotFound. *Carlos Antonio da Silva*
231
232 * Deprecate ActionController::DoubleRenderError in favour of AbstractController::DoubleRenderError. *Carlos Antonio da Silva*
233
234 * Deprecate method_missing handling for not found actions, use action_missing instead. *Carlos Antonio da Silva*
235
236 * Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
237 These methods were not being used internally anymore and are going to be removed in Rails 4. *Carlos Antonio da Silva*
238
c4c6beb @rafaelfranca Add option to configure Sprockets logger
rafaelfranca authored
239 * Add config.assets.logger to configure Sprockets logger *Rafael França*
240
c159b01 @spastorino Use a BodyProxy instead of including a Module that responds to close.
spastorino authored
241 * Use a BodyProxy instead of including a Module that responds to
242 close. Closes #4441 if Active Record is disabled assets are delivered
243 correctly *Santiago Pastorino*
244
6f48fb3 @spastorino Add CHANGELOG entry
spastorino authored
245 * Rails initialization with initialize_on_precompile = false should set assets_dir *Santiago Pastorino*
246
0d7d3a6 @spastorino Add font_path helper method
spastorino authored
247 * Add font_path helper method *Santiago Pastorino*
248
a0fd9fb @spastorino Add CHANGELOG entry
spastorino authored
249 * Depends on rack ~> 1.4.0 *Santiago Pastorino*
250
fc42998 @josevalim Update CHANGELOGs.
josevalim authored
251 * Add :gzip option to `caches_page`. The default option can be configured globally using `page_cache_compression` *Andrey Sitnik*
252
6481bc5 @josevalim Update CHANGELOGs and guides.
josevalim authored
253 * The ShowExceptions middleware now accepts a exceptions application that is responsible to render an exception when the application fails. The application is invoked with a copy of the exception in `env["action_dispatch.exception"]` and with the PATH_INFO rewritten to the status code. *José Valim*
254
3f65e7f @wfarr Add button_tag support to ActionView::Helpers::FormBuilder.
wfarr authored
255 * Add `button_tag` support to ActionView::Helpers::FormBuilder.
256
257 This support mimics the default behavior of `submit_tag`.
258
259 Example:
260
261 <%= form_for @post do |f| %>
262 <%= f.button %>
263 <% end %>
264
ed0f0ad @carlosantoniodasilva Update changelog
carlosantoniodasilva authored
265 * Date helpers accept a new option, `:use_two_digit_numbers = true`, that renders select boxes for months and days with a leading zero without changing the respective values.
dc43e40 @DevL Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]
DevL authored
266 For example, this is useful for displaying ISO8601-style dates such as '2011-08-01'. *Lennart Fridén and Kim Persson*
267
22a6079 @dhh Make ActiveSupport::Benchmarkable a default module for ActionController:...
dhh authored
268 * Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
269
5ad5215 @josevalim Deprecate implicit layout lookup in favor of inheriting the _layout conf...
josevalim authored
270 * Deprecated implied layout lookup in controllers whose parent had a explicit layout set:
271
272 class ApplicationController
273 layout "application"
274 end
275
276 class PostsController < ApplicationController
277 end
278
279 In the example above, Posts controller will no longer automatically look up for a posts layout.
280
281 If you need this functionality you could either remove `layout "application"` from ApplicationController or explicitly set it to nil in PostsController. *José Valim*
282
18ceed2 @sikachu Allow layout fallback when using `layout` method
sikachu authored
283 * Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail. *Prem Sichanugrist*
284
285 For example, consider this snippet:
286
287 class CarsController
288 layout 'single_car', :only => :show
289 end
290
291 Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
292
e29773f @nashby form_for with +:as+ option uses "action_as" as css class and id
nashby authored
293 * form_for with +:as+ option uses "#{action}_#{as}" as css class and id:
294
295 Before:
296
297 form_for(@user, :as => 'client') # => "<form class="client_new">..."
298
299 Now:
300
301 form_for(@user, :as => 'client') # => "<form class="new_client">..."
302
303 *Vasiliy Ermolovich*
304
07f90f6 @josevalim Merge branch 'exceptions' with the following features:
josevalim authored
305 * Allow rescue responses to be configured through a railtie as in `config.action_dispatch.rescue_responses`. Please look at ActiveRecord::Railtie for an example *José Valim*
306
218c272 @dhh Allow fresh_when/stale? to take a record instead of an options hash [DHH...
dhh authored
307 * Allow fresh_when/stale? to take a record instead of an options hash *DHH*
308
1e51cd9 @josevalim Update CHANGELOG.
josevalim authored
309 * Assets should use the request protocol by default or default to relative if no request is available *Jonathan del Strother*
310
311 * Log "Filter chain halted as CALLBACKNAME rendered or redirected" every time a before callback halts *José Valim*
38ab982 @josevalim Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every t...
josevalim authored
312
2559256 @nashby update CHANGELOG
nashby authored
313 * You can provide a namespace for your form to ensure uniqueness of id attributes on form elements.
314 The namespace attribute will be prefixed with underscore on the generate HTML id. *Vasiliy Ermolovich*
315
316 Example:
317
318 <%= form_for(@offer, :namespace => 'namespace') do |f| %>
319 <%= f.label :version, 'Version' %>:
320 <%= f.text_field :version %>
321 <% end %>
322
654df86 @josevalim Show detailed exceptions no longer returns true if the request is local ...
josevalim authored
323 * Refactor ActionDispatch::ShowExceptions. The controller is responsible for choosing to show exceptions when `consider_all_requests_local` is false.
3a1d519 @lest deprecation warning, changelog entry
lest authored
324
654df86 @josevalim Show detailed exceptions no longer returns true if the request is local ...
josevalim authored
325 It's possible to override `show_detailed_exceptions?` in controllers to specify which requests should provide debugging information on errors. The default value is now false, meaning local requests in production will no longer show the detailed exceptions page unless `show_detailed_exceptions?` is overridden and set to `request.local?`.
3a1d519 @lest deprecation warning, changelog entry
lest authored
326
281272a @jonleighton Convert CHANGELOGs to Markdown format.
jonleighton authored
327 * Responders now return 204 No Content for API requests without a response body (as in the new scaffold) *José Valim*
328
329 * Added ActionDispatch::RequestId middleware that'll make a unique X-Request-Id header available to the response and enables the ActionDispatch::Request#uuid method. This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs like Syslog *DHH*
330
331 * Limit the number of options for select_year to 1000.
332
333 Pass the :max_years_allowed option to set your own limit.
334
335 *Libo Cannici*
336
337 * Passing formats or handlers to render :template and friends is deprecated. For example: *Nick Sutterer & José Valim*
338
339 render :template => "foo.html.erb"
340
341 Instead, you can provide :handlers and :formats directly as option:
342 render :template => "foo", :formats => [:html, :js], :handlers => :erb
343
344 * Changed log level of warning for missing CSRF token from :debug to :warn. *Mike Dillon*
345
346 * content_tag_for and div_for can now take the collection of records. It will also yield the record as the first argument if you set a receiving argument in your block *Prem Sichanugrist*
347
348 So instead of having to do this:
349
350 @items.each do |item|
351 content_tag_for(:li, item) do
352 Title: <%= item.title %>
353 end
354 end
355
356 You can now do this:
357
358 content_tag_for(:li, @items) do |item|
359 Title: <%= item.title %>
360 end
361
362 * send_file now guess the mime type *Esad Hajdarevic*
363
364 * Mime type entries for PDF, ZIP and other formats were added *Esad Hajdarevic*
365
366 * Generate hidden input before select with :multiple option set to true.
367 This is useful when you rely on the fact that when no options is set,
368 the state of select will be sent to rails application. Without hidden field
369 nothing is sent according to HTML spec *Bogdan Gusiev*
370
371 * Refactor ActionController::TestCase cookies *Andrew White*
372
373 Assigning cookies for test cases should now use cookies[], e.g:
374
375 cookies[:email] = 'user@example.com'
376 get :index
377 assert_equal 'user@example.com', cookies[:email]
378
379 To clear the cookies, use clear, e.g:
380
381 cookies.clear
382 get :index
383 assert_nil cookies[:email]
384
385 We now no longer write out HTTP_COOKIE and the cookie jar is
386 persistent between requests so if you need to manipulate the environment
387 for your test you need to do it before the cookie jar is created.
388
677f968 Add information to the changelog about the changes to ActionController::...
Jean-Francois Turcot authored
389 * ActionController::ParamsWrapper on ActiveRecord models now only wrap
390 attr_accessible attributes if they were set, if not, only the attributes
391 returned by the class method attribute_names will be wrapped. This fixes
392 the wrapping of nested attributes by adding them to attr_accessible.
393
8efced6 @fxn CHANGELOGs are now per branch
fxn authored
394 Please check [3-1-stable](https://github.com/rails/rails/blob/3-1-stable/actionpack/CHANGELOG.md) for previous changes.
Something went wrong with that request. Please try again.