Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 676 lines (426 sloc) 26.017 kB
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
1 ## Rails 4.0.0 (unreleased) ##
e2cc653 @josevalim Do not deprecate performed.
josevalim authored
2
0d3a9e8 @guilleiguaran Allow setting a symbol as path in scope on routes
guilleiguaran authored
3 * Allow setting a symbol as path in scope on routes. This is now allowed:
4
43dd9c8 @carlosantoniodasilva Indent changelog markdown code to highlight correctly
carlosantoniodasilva authored
5 scope :api do
6 resources :users
7 end
0d3a9e8 @guilleiguaran Allow setting a symbol as path in scope on routes
guilleiguaran authored
8
43dd9c8 @carlosantoniodasilva Indent changelog markdown code to highlight correctly
carlosantoniodasilva authored
9 It is also possible to pass multiple symbols to scope to shorten multiple nested scopes:
0d3a9e8 @guilleiguaran Allow setting a symbol as path in scope on routes
guilleiguaran authored
10
43dd9c8 @carlosantoniodasilva Indent changelog markdown code to highlight correctly
carlosantoniodasilva authored
11 scope :api do
12 scope :v1 do
13 resources :users
14 end
0d3a9e8 @guilleiguaran Allow setting a symbol as path in scope on routes
guilleiguaran authored
15 end
16
17 can be rewritten as:
18
43dd9c8 @carlosantoniodasilva Indent changelog markdown code to highlight correctly
carlosantoniodasilva authored
19 scope :api, :v1 do
20 resources :users
21 end
0d3a9e8 @guilleiguaran Allow setting a symbol as path in scope on routes
guilleiguaran authored
22
23 *Guillermo Iguaran*
24
ce60672 @carlosantoniodasilva Correct the use of params options when given to url_for
carlosantoniodasilva authored
25 * Fix error when using a non-hash query argument named "params" in `url_for`.
26
27 Before:
28
29 url_for(params: "") # => undefined method `reject!' for "":String
30
31 After:
32
33 url_for(params: "") # => http://www.example.com?params=
34
35 *tumayun + Carlos Antonio da Silva*
36
1d07d3d @senny render every partial with a new `PartialRenderer`.
senny authored
37 * Render every partial with a new `ActionView::PartialRenderer`. This resolves
38 issues when rendering nested partials.
39 Fix #8197
40
41 *Yves Senn*
42
de20deb @carlosantoniodasilva Move changelog entry from #8235 to the top [ci skip]
carlosantoniodasilva authored
43 * Introduce `ActionView::Template::Handlers::ERB.escape_whitelist`. This is a list
44 of mime types where template text is not html escaped by default. It prevents `Jack & Joe`
45 from rendering as `Jack & Joe` for the whitelisted mime types. The default whitelist
46 contains text/plain. Fix #7976
47
48 *Joost Baaij*
49
f8ca941 @rafaelfranca Add CHANGELOG entry for #8108 on master too.
rafaelfranca authored
50 * Fix input name when `:multiple => true` and `:index` are set.
51
52 Before:
53
54 check_box("post", "comment_ids", { :multiple => true, :index => "foo" }, 1)
55 #=> <input name=\"post[foo][comment_ids]\" type=\"hidden\" value=\"0\" /><input id=\"post_foo_comment_ids_1\" name=\"post[foo][comment_ids]\" type=\"checkbox\" value=\"1\" />
56
57 After:
58
59 check_box("post", "comment_ids", { :multiple => true, :index => "foo" }, 1)
60 #=> <input name=\"post[foo][comment_ids][]\" type=\"hidden\" value=\"0\" /><input id=\"post_foo_comment_ids_1\" name=\"post[foo][comment_ids][]\" type=\"checkbox\" value=\"1\" />
61
62 Fix #8108
63
64 *Daniel Fox, Grant Hutchins & Trace Wax*
65
96bcef9 @spastorino Clear url helpers when reloading routes
spastorino authored
66 * Clear url helpers when reloading routes.
67
68 *Santiago Pastorino*
69
d8c1404 @nikitug Fix #8086 (BestStandardsSupport rewrites app X-UA-Compatible header, …
nikitug authored
70 * `BestStandardsSupport` middleware now appends it's `X-UA-Compatible` value to app's
71 returned value if any. Fix #8086
72
73 *Nikita Afanasenko*
74
11acaa1 @rafaelfranca Merge pull request #7975 from butcher/extend_date_select_helper_funct…
rafaelfranca authored
75 * `date_select` helper accepts `with_css_classes: true` to add css classes similar with type
76 of generated select tags.
77
78 *Pavel Nikitin*
79
a3913ca @josh Add changelog entry for precompile config
josh authored
80 * Only non-js/css under app/assets path will be included in default config.assets.precompile.
81
82 *Josh Peek*
83
d7f8b2a @rafaelfranca Add more CHANGELOG entries from #7927
rafaelfranca authored
84 * Remove support for the RAILS_ASSET_ID environment configuration
85 (no longer needed now that we have the asset pipeline).
86
87 *Josh Peek*
88
e627834 @rafaelfranca Add CHANGELOG entry for #7927
rafaelfranca authored
89 * Remove old asset_path configuration (no longer needed now that we have the asset pipeline).
90
91 *Josh Peek*
92
ed95674 @senny recognizes when a partial was rendered twice. Closes #3675
senny authored
93 * `assert_template` can be used to assert on the same template with different locals
94 Fix #3675
95
96 *Yves Senn*
97
e627834 @rafaelfranca Add CHANGELOG entry for #7927
rafaelfranca authored
98 * Remove old asset tag concatenation (no longer needed now that we have the asset pipeline).
99
100 *Josh Peek*
bf24ba9 @dhh Add changelog entry for killing the asset tag concatenation
dhh authored
101
6caae02 @teleological Accept :remote as symbol in link_to options
teleological authored
102 * Accept :remote as symbolic option for `link_to` helper. *Riley Lynch*
103
af677da @senny can't pass :locals to #assert_template without a view test case. Clos…
senny authored
104 * Warn when the `:locals` option is passed to `assert_template` outside of a view test case
105 Fix #3415
106
107 *Yves Senn*
108
109 * The `Rack::Cache` middleware is now disabled by default. To enable it,
ab4c079 @guilleiguaran Update CHANGELOG entry about rack-cache extract
guilleiguaran authored
110 set `config.action_dispatch.rack_cache = true` and add `gem rack-cache` to your Gemfile.
111
112 *Guillermo Iguaran*
113
c82cf81 add CHANGELOG entry for AP page and action caching extraction [ci skip]
Francesco Rodriguez authored
114 * `ActionController::Base.page_cache_extension` option is deprecated
115 in favour of `ActionController::Base.default_static_extension`.
116
117 *Francesco Rodriguez*
118
119 * Action and Page caching has been extracted from Action Dispatch
120 as `actionpack-action_caching` and `actionpack-page_caching` gems.
121 Please read the `README.md` file on both gems for the usage.
122
123 *Francesco Rodriguez*
124
561edbe @steveklabnik Failsafe exception returns text/plain.
steveklabnik authored
125 * Failsafe exception returns text/plain. *Steve Klabnik*
126
ab4c079 @guilleiguaran Update CHANGELOG entry about rack-cache extract
guilleiguaran authored
127 * Remove `rack-cache` dependency from Action Pack and declare it on Gemfile
8ea88c3 @spastorino Add the CHANGELOG entry that Guillermo forgot :P
spastorino authored
128
ab4c079 @guilleiguaran Update CHANGELOG entry about rack-cache extract
guilleiguaran authored
129 *Guillermo Iguaran*
8ea88c3 @spastorino Add the CHANGELOG entry that Guillermo forgot :P
spastorino authored
130
bb0f4a1 @senny prefix TemplateAssertions ivars (#7459)
senny authored
131 * Rename internal variables on ActionController::TemplateAssertions to prevent
132 naming collisions. @partials, @templates and @layouts are now prefixed with an underscore.
133 Fix #7459
134
135 *Yves Senn*
136
b30ce03 @senny resource and resources do no longer modify passed options
senny authored
137 * `resource` and `resources` don't modify the passed options hash
138 Fix #7777
139
140 *Yves Senn*
141
a6cfd33 @jeremy Add a changelog entry for asset aliasing update in sprockets-rails. S…
jeremy authored
142 * Precompiled assets include aliases from foo.js to foo/index.js and vice versa.
143
144 # Precompiles phone-<digest>.css and aliases phone/index.css to phone.css.
145 config.assets.precompile = [ 'phone.css' ]
146
147 # Precompiles phone/index-<digest>.css and aliases phone.css to phone/index.css.
148 config.assets.precompile = [ 'phone/index.css' ]
149
150 # Both of these work with either precompile thanks to their aliases.
151 <%= stylesheet_link_tag 'phone', media: 'all' %>
152 <%= stylesheet_link_tag 'phone/index', media: 'all' %>
153
154 *Jeremy Kemper*
155
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
156 * `assert_template` is no more passing with what ever string that matches
157 with the template name.
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
158
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
159 Before when we have a template `/layout/hello.html.erb`, `assert_template`
160 was passing with any string that matches. This behavior allowed false
161 positive like:
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
162
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
163 assert_template "layout"
164 assert_template "out/hello"
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
165
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
166 Now it only passes with:
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
167
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
168 assert_template "layout/hello"
169 assert_template "hello"
170
171 Fixes #3849.
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
172
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
173 *Hugolnx*
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
174
2b9bce8 @NARKOZ allow to pass numerical value to size option in image_tag
NARKOZ authored
175 * `image_tag` will set the same width and height for image if numerical value
176 passed to `size` option.
177
178 *Nihad Abbasov*
179
9e2948e @grosser depreacte unused Mime::Type#verify_request? and Mime::Type.browser_ge…
grosser authored
180 * Deprecate Mime::Type#verify_request? and Mime::Type.browser_generated_types,
181 since they are no longer used inside of Rails, they will be removed in Rails 4.1
182
183 *Michael Grosser*
184
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
185 * `ActionDispatch::Http::UploadedFile` now delegates `close` to its tempfile. *Sergio Gil*
186
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
187 * Add `ActionController::StrongParameters`, this module converts `params` hash into
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
188 an instance of ActionController::Parameters that allows whitelisting of permitted
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
189 parameters. Non-permitted parameters are forbidden to be used in Active Model by default
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
190 For more details check the documentation of the module or the
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
191 [strong_parameters gem](https://github.com/rails/strong_parameters)
192
193 *DHH + Guillermo Iguaran*
194
195 * Remove Integration between `attr_accessible`/`attr_protected` and
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
196 `ActionController::ParamsWrapper`. ParamWrapper now wraps all the parameters returned
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
197 by the class method attribute_names
198
199 *Guillermo Iguaran*
200
370dcd9 @senny log 404 status when ActiveRecord::RecordNotFound was raised (#7646)
senny authored
201 * Fix #7646, the log now displays the correct status code when an exception is raised.
202
203 *Yves Senn*
204
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
205 * Allow pass couple extensions to `ActionView::Template.register_template_handler` call.
206
207 *Tima Maslyuchenko*
13b0af7 @timsly allowing pass couple extension to register_template_handler call
timsly authored
208
59b8b82 @guilleiguaran Fix changelog entry about sprockets-rails
guilleiguaran authored
209 * Sprockets integration has been extracted from Action Pack to the `sprockets-rails`
210 gem. `rails` gem is depending on `sprockets-rails` by default.
0654f76 @guilleiguaran Add missing entries in AP changelog
guilleiguaran authored
211
212 *Guillermo Iguaran*
213
dadfa9a @senny cleanup, remove whitespace from CHANGELOG
senny authored
214 * `ActionDispatch::Session::MemCacheStore` now uses `dalli` instead of the deprecated
215 `memcache-client` gem. As side effect the autoloading of unloaded classes objects
216 saved as values in session isn't supported anymore when mem_cache session store is
217 used, this can have an impact in apps only when config.cache_classes is false.
0654f76 @guilleiguaran Add missing entries in AP changelog
guilleiguaran authored
218
219 *Arun Agrawal + Guillermo Iguaran*
220
cd461c3 Support for multiple etags in an If-None-Match header
Travis Warlick authored
221 * Support multiple etags in If-None-Match header. *Travis Warlick*
222
2385129 @lest update CHANGELOG
lest authored
223 * Allow to configure how unverified request will be handled using `:with`
224 option in `protect_from_forgery` method.
225
226 Valid unverified request handling methods are:
227
228 - `:exception` - Raises ActionController::InvalidAuthenticityToken exception.
229 - `:reset_session` - Resets the session.
230 - `:null_session` - Provides an empty session during request but doesn't
231 reset it completely. Used as default if `:with` option is not specified.
232
233 New applications are generated with:
234
235 protect_from_forgery :with => :exception
236
237 *Sergey Nartimov*
238
de1060f @guilleiguaran Rename .rb template handler to .ruby to avoid conflicts with mustache…
guilleiguaran authored
239 * Add .ruby template handler, this handler simply allows arbitrary Ruby code as a template. *Guillermo Iguaran*
ab7ae68 @guilleiguaran Add .rb template handler
guilleiguaran authored
240
aaa33e6 @carlosantoniodasilva Improve latest AR and AP changelog entries
carlosantoniodasilva authored
241 * Add `separator` option for `ActionView::Helpers::TextHelper#excerpt`:
242
243 excerpt('This is a very beautiful morning', 'very', :separator => ' ', :radius => 1)
244 # => ...a very beautiful...
245
246 *Guirec Corbel*
963c50e @GCorbel Add a separation option for the excerpt function
GCorbel authored
247
ed5c938 @dhh Added controller-level etag additions that will be part of the action…
dhh authored
248 * Added controller-level etag additions that will be part of the action etag computation *Jeremy Kemper/DHH*
249
ee2da01 @aaronbrethorst Fix Markdown rendering of 'controller-level etag additions' feature
aaronbrethorst authored
250 class InvoicesController < ApplicationController
251 etag { current_user.try :id }
252
253 def show
254 # Etag will differ even for the same invoice when it's viewed by a different current_user
255 @invoice = Invoice.find(params[:id])
256 fresh_when(@invoice)
257 end
ed5c938 @dhh Added controller-level etag additions that will be part of the action…
dhh authored
258 end
259
0409c69 @fxn some copy-editing I did in passing
fxn authored
260 * Add automatic template digests to all `CacheHelper#cache` calls (originally spiked in the cache_digests plugin) *DHH*
502d5e2 @dhh Add automatic template digests to all CacheHelper#cache calls (origin…
dhh authored
261
0b6175a @schneems Add Missing Keys from Journey on failed URL format
schneems authored
262 * When building a URL fails, add missing keys provided by Journey. Failed URL
263 generation now returns a 500 status instead of a 404.
264
265 *Richard Schneeman*
266
0409c69 @fxn some copy-editing I did in passing
fxn authored
267 * Deprecate availbility of `ActionView::RecordIdentifier` in controllers by default.
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
268 It's view specific and can be easily included in controller manually if someone
0409c69 @fxn some copy-editing I did in passing
fxn authored
269 really needs it. RecordIdentifier will be removed from `ActionController::Base`
270 in Rails 4.1. *Piotr Sarnacki*
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
271
0409c69 @fxn some copy-editing I did in passing
fxn authored
272 * Fix `ActionView::RecordIdentifier` to work as a singleton. *Piotr Sarnacki*
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
273
0409c69 @fxn some copy-editing I did in passing
fxn authored
274 * Deprecate `Template#mime_type`, it will be removed in Rails 4.1 in favor of `#type`.
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
275 *Piotr Sarnacki*
276
0409c69 @fxn some copy-editing I did in passing
fxn authored
277 * Move vendored html-scanner from `action_controller` to `action_view` directory. If you
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
278 require it directly, please use 'action_view/vendor/html-scanner', reference to
0409c69 @fxn some copy-editing I did in passing
fxn authored
279 'action_controller/vendor/html-scanner' will be removed in Rails 4.1. *Piot Sarnacki*
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
280
130fe2b @nashby correct handling of date selects when using both disabled and discard…
nashby authored
281 * Fix handling of date selects when using both disabled and discard options.
282 Fixes #7431.
283
284 *Vasiliy Ermolovich*
285
0ffe190 @sikachu Extract ActiveRecord::SessionStore from Rails
sikachu authored
286 * `ActiveRecord::SessionStore` is extracted out of Rails into a gem `activerecord-session_store`.
287 Setting `config.session_store` to `:active_record_store` will no longer work and will break
288 if the `activerecord-session_store` gem isn't available. *Prem Sichanugrist*
289
0409c69 @fxn some copy-editing I did in passing
fxn authored
290 * Fix `select_tag` when `option_tags` is nil.
684a040 @rafaelfranca Add CHANGELOG entry for #7410
rafaelfranca authored
291 Fixes #7404.
292
293 *Sandeep Ravichandran*
294
0409c69 @fxn some copy-editing I did in passing
fxn authored
295 * Add `Request#formats=(extensions)` that lets you set multiple formats directly in a prioritized order.
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats d…
dhh authored
296
297 Example of using this for custom iphone views with an HTML fallback:
298
ed491ae Fix slightly broken Markdown syntax in actionpack/CHANGELOG.md
hollowspace authored
299 class ApplicationController < ActionController::Base
300 before_filter :adjust_format_for_iphone_with_html_fallback
301
302 private
303 def adjust_format_for_iphone_with_html_fallback
304 request.formats = [ :iphone, :html ] if request.env["HTTP_USER_AGENT"][/iPhone/]
305 end
306 end
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats d…
dhh authored
307
0409c69 @fxn some copy-editing I did in passing
fxn authored
308 *DHH*
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats d…
dhh authored
309
0bd7b07 @rafaelfranca Add CHANGELOG entry and documentation for Routing Concerns
rafaelfranca authored
310 * Add Routing Concerns to declare common routes that can be reused inside
311 others resources and routes.
312
313 Code before:
314
315 resources :messages do
316 resources :comments
317 end
318
319 resources :posts do
320 resources :comments
321 resources :images, only: :index
322 end
323
324 Code after:
325
326 concern :commentable do
327 resources :comments
328 end
329
330 concern :image_attachable do
331 resources :images, only: :index
332 end
333
334 resources :messages, concerns: :commentable
335
336 resources :posts, concerns: [:commentable, :image_attachable]
337
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats d…
dhh authored
338 *DHH + Rafael Mendonça França*
0bd7b07 @rafaelfranca Add CHANGELOG entry and documentation for Routing Concerns
rafaelfranca authored
339
0409c69 @fxn some copy-editing I did in passing
fxn authored
340 * Add `start_hour` and `end_hour` options to the `select_hour` helper. *Evan Tann*
1edc7cd @egtann Add support for start_hour and end_hour options in select_hour helper
egtann authored
341
0409c69 @fxn some copy-editing I did in passing
fxn authored
342 * Raises an `ArgumentError` when the first argument in `form_for` contain `nil`
347f8c5 @rafaelfranca Add CHANGELOG entry for #7314
rafaelfranca authored
343 or is empty.
344
345 *Richard Schneeman*
346
4848bf3 @aantix Added X-Content-Type-Options to the header defaults.
aantix authored
347 * Add 'X-Frame-Options' => 'SAMEORIGIN'
348 'X-XSS-Protection' => '1; mode=block' and
349 'X-Content-Type-Options' => 'nosniff'
0b11dbe @spastorino Add 'X-Frame-Options' => 'SAMEORIGIN' and 'X-XSS-Protection' => '1; m…
spastorino authored
350 as default headers.
351
352 *Egor Homakov*
353
b540f4c @dhh Allow data attributes to be set as a first-level option for form_for,…
dhh authored
354 * Allow data attributes to be set as a first-level option for form_for, so you can write `form_for @record, data: { behavior: 'autosave' }` instead of `form_for @record, html: { data: { behavior: 'autosave' } }` *DHH*
355
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
356 * Deprecate `button_to_function` and `link_to_function` helpers.
357
358 We recommend the use of Unobtrusive JavaScript instead. For example:
359
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
360 link_to "Greeting", "#", :class => "nav_link"
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
361
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
362 $(function() {
363 $('.nav_link').click(function() {
364 // Some complex code
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
365
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
366 return false;
367 });
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
368 });
369
370 or
371
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
372 link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link"
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
373
374 for simple cases.
375
376 *Rafael Mendonça França*
377
02c9654 @sikachu Do not include application.js if it doesn't exists
sikachu authored
378 * `javascript_include_tag :all` will now not include `application.js` if the file does not exists. *Prem Sichanugrist*
379
39f4f28 @rafaelfranca Add CHANGELOG entry for 3c731a4ad62430100ba0b65bc966aa6dc6280c5f
rafaelfranca authored
380 * Send an empty response body when call `head` with status between 100 and 199, 204, 205 or 304.
381
382 *Armand du Plessis*
383
0409c69 @fxn some copy-editing I did in passing
fxn authored
384 * Fixed issue with where digest authentication would not work behind a proxy. *Arthur Smith*
6beaafd @steveklabnik Changelog entry for Digest Auth fix (#2301)
steveklabnik authored
385
9bcd018 @fxn gives credit to Aaron in the CHANGELOG entry for AC::Live
fxn authored
386 * Added `ActionController::Live`. Mix it in to your controller and you can
0899be5 @tenderlove updated changelog
tenderlove authored
387 stream data to the client live. For example:
388
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
389 class FooController < ActionController::Base
390 include ActionController::Live
0899be5 @tenderlove updated changelog
tenderlove authored
391
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
392 def index
393 100.times {
394 # Client will see this as it's written
395 response.stream.write "hello world\n"
396 sleep 1
397 }
398 response.stream.close
399 end
0899be5 @tenderlove updated changelog
tenderlove authored
400 end
401
9bcd018 @fxn gives credit to Aaron in the CHANGELOG entry for AC::Live
fxn authored
402 *Aaron Patterson*
403
404 * Remove `ActionDispatch::Head` middleware in favor of `Rack::Head`. *Santiago Pastorino*
14a1df1 @spastorino Add CHANGELOG entry
spastorino authored
405
9345a11 Add back `:confirm` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
406 * Deprecate `:confirm` in favor of `:data => { :confirm => "Text" }` option for `button_to`, `button_tag`, `image_submit_tag`, `link_to` and `submit_tag` helpers.
fb8a830 @carlosgaldino Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` option
carlosgaldino authored
407
9345a11 Add back `:confirm` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
408 *Carlos Galdino + Rafael Mendonça França*
fb8a830 @carlosgaldino Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` option
carlosgaldino authored
409
3bbc2fb @carlosantoniodasilva Improve and fix AP changelog, sync release notes [ci skip]
carlosantoniodasilva authored
410 * Show routes in exception page while debugging a `RoutingError` in development. *Richard Schneeman and Mattt Thompson*
bbfd29a @schneems show routes while debugging added to changelog
schneems authored
411
238a425 @kennyj Added support add_flash_types
kennyj authored
412 * Add `ActionController::Flash.add_flash_types` method to allow people to register their own flash types. e.g.:
413
414 class ApplicationController
415 add_flash_types :error, :warning
416 end
417
3bbc2fb @carlosantoniodasilva Improve and fix AP changelog, sync release notes [ci skip]
carlosantoniodasilva authored
418 If you add the above code, you can use `<%= error %>` in an erb, and `redirect_to /foo, :error => 'message'` in a controller.
238a425 @kennyj Added support add_flash_types
kennyj authored
419
420 *kennyj*
421
ab72040 @carlosantoniodasilva Update AR and AP changelogs [ci skip]
carlosantoniodasilva authored
422 * Remove Active Model dependency from Action Pack. *Guillermo Iguaran*
423
c42a7a0 @kennyj Support unicode character route in config/routes.rb.
kennyj authored
424 * Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping:
425
426 get Rack::Utils.escape('こんにちは') => 'home#index'
427
428 You just have to write the unicode route:
429
430 get 'こんにちは' => 'home#index'
431
432 *kennyj*
433
bd8c0b8 @spastorino Return proper format on exceptions
spastorino authored
434 * Return proper format on exceptions. *Santiago Pastorino*
435
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
436 * Allow to use `mounted_helpers` (helpers for accessing mounted engines) in `ActionView::TestCase`. *Piotr Sarnacki*
60b4290 @drogus Allow to use mounted helpers in ActionView::TestCase
drogus authored
437
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
438 * Include `mounted_helpers` (helpers for accessing mounted engines) in `ActionDispatch::IntegrationTest` by default. *Piotr Sarnacki*
6525002 @drogus Include routes.mounted_helpers into integration tests
drogus authored
439
4791822 @jeremyf Extracted redirect logic from ActionController::Force::ClassMethods.f…
jeremyf authored
440 * Extracted redirect logic from `ActionController::ForceSSL::ClassMethods.force_ssl` into `ActionController::ForceSSL#force_ssl_redirect`
441
442 *Jeremy Friesen*
443
0409c69 @fxn some copy-editing I did in passing
fxn authored
444 * Make possible to use a block in `button_to` if the button text is hard
ab7a80e @lest accept a block in button_to helper
lest authored
445 to fit into the name parameter, e.g.:
446
447 <%= button_to [:make_happy, @user] do %>
448 Make happy <strong><%= @user.name %></strong>
449 <% end %>
450 # => "<form method="post" action="/users/1/make_happy" class="button_to">
451 # <div>
452 # <button type="submit">
453 # Make happy <strong>Name</strong>
454 # </button>
455 # </div>
456 # </form>"
457
458 *Sergey Nartimov*
459
e4aaac1 @drogus Fix sorting of helpers from different paths
drogus authored
460 * change a way of ordering helpers from several directories. Previously,
461 when loading helpers from multiple paths, all of the helpers files were
462 gathered into one array an then they were sorted. Helpers from different
463 directories should not be mixed before loading them to make loading more
464 predictable. The most common use case for such behavior is loading helpers
465 from engines. When you load helpers from application and engine Foo, in
466 that order, first rails will load all of the helpers from application,
467 sorted alphabetically and then it will do the same for Foo engine.
468
469 *Piotr Sarnacki*
470
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
471 * `truncate` now always returns an escaped HTML-safe string. The option `:escape` can be used as
2c2b0be @rafaelfranca Add `:escape` option for `truncate`
rafaelfranca authored
472 false to not escape the result.
473
474 *Li Ellis Gallardo + Rafael Mendonça França*
475
eedc513 @rafaelfranca Update the documentation and add CHANGELOG entry
rafaelfranca authored
476 * `truncate` now accepts a block to show extra content when the text is truncated. *Li Ellis Gallardo*
477
b02d14a @carlosgaldino Add several HTML5 input helpers
carlosgaldino authored
478 * Add `week_field`, `week_field_tag`, `month_field`, `month_field_tag`, `datetime_local_field`,
479 `datetime_local_field_tag`, `datetime_field` and `datetime_field_tag` helpers. *Carlos Galdino*
480
1ce4b5b @carlosgaldino Add HTML5 input[type="color"] helper
carlosgaldino authored
481 * Add `color_field` and `color_field_tag` helpers. *Carlos Galdino*
482
a78ee05 @rafaelfranca Fix CHANGELOG order and add a brief description of the changes in the
rafaelfranca authored
483 * `assert_generates`, `assert_recognizes`, and `assert_routing` all raise
484 `Assertion` instead of `RoutingError` *David Chelimsky*
485
3fc561a @pixeltrix Return 400 Bad Request for URL paths with invalid encoding.
pixeltrix authored
486 * URL path parameters with invalid encoding now raise ActionController::BadRequest. *Andrew White*
487
66eb3f0 @pixeltrix Raise ActionController::BadRequest for malformed parameter hashes.
pixeltrix authored
488 * Malformed query and request parameter hashes now raise ActionController::BadRequest. *Andrew White*
489
0e207a4 @carlosantoniodasilva Clarify grouped_options_for_select method API, add changelog entry
carlosantoniodasilva authored
490 * Add `divider` option to `grouped_options_for_select` to generate a separator
491 `optgroup` automatically, and deprecate `prompt` as third argument, in favor
492 of using an options hash. *Nicholas Greenfield*
493
446940c @soulim Add HTML5 input[type="time"] helper
soulim authored
494 * Add `time_field` and `time_field_tag` helpers which render an `input[type="time"]` tag. *Alex Soulim*
495
90ec863 @iHiD Removed old text_helper apis for highlight, excerpt and word_wrap
iHiD authored
496 * Removed old text_helper apis for highlight, excerpt and word_wrap *Jeremy Walker*
497
de29c30 @josevalim Update actionpack/CHANGELOG.md
josevalim authored
498 * Templates without a handler extension now raises a deprecation warning but still
499 defaults to ERb. In future releases, it will simply return the template contents. *Steve Klabnik*
500
0106e5f Add back `:disable_with` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
501 * Deprecate `:disable_with` in favor of `:data => { :disable_with => "Text" }` option from `submit_tag`, `button_tag` and `button_to` helpers.
dd42e89 @josevalim Revert "Revert "Remove `:disable_with` in favor of `'data-disable-wit…
josevalim authored
502
503 *Carlos Galdino + Rafael Mendonça França*
504
71931e2 @rafaelfranca Remove `:mouseover` option from `image_tag` helper.
rafaelfranca authored
505 * Remove `:mouseover` option from `image_tag` helper. *Rafael Mendonça França*
506
507 * The `select` method (select tag) forces :include_blank if `required` is true and
2e9c7cd Changed the changelog and documentation about
Angelo Capilleri authored
508 `display size` is one and `multiple` is not true. *Angelo Capilleri*
509
9b4514c @pixeltrix Copy literal route constraints to defaults - fixes #3571 and #6224.
pixeltrix authored
510 * Copy literal route constraints to defaults so that url generation know about them.
511 The copied constraints are `:protocol`, `:subdomain`, `:domain`, `:host` and `:port`.
512
513 *Andrew White*
514
c02846f @josevalim Update actionpack/CHANGELOG.md
josevalim authored
515 * `respond_to` and `respond_with` now raise ActionController::UnknownFormat instead
516 of directly returning head 406. The exception is rescued and converted to 406
517 in the exception handling middleware. *Steven Soroka*
518
a544e00 @alindeman Allows assert_redirected_to to accept a regular expression
alindeman authored
519 * Allows `assert_redirected_to` to match against a regular expression. *Andy Lindeman*
520
36720af @spastorino Add CHANGELOG entry
spastorino authored
521 * Add backtrace to development routing error page. *Richard Schneeman*
522
4a2d53a @dmitriy-kiriyenko Replace boolean argument with an options hash.
dmitriy-kiriyenko authored
523 * Replace `include_seconds` boolean argument with `:include_seconds => true` option
524 in `distance_of_time_in_words` and `time_ago_in_words` signature. *Dmitriy Kiriyenko*
525
ab318d2 @carlosantoniodasilva Add changelog entry and some docs for collection + layout
carlosantoniodasilva authored
526 * Make current object and counter (when it applies) variables accessible when
527 rendering templates with :object / :collection. *Carlos Antonio da Silva*
528
cf1f670 @joliss Fix MIME type in CHANGELOG
joliss authored
529 * JSONP now uses mimetype text/javascript instead of application/json. *omjokine*
65df4c5 @carlosantoniodasilva Add changelog entry for jsonp mimetype change, fix failing test
carlosantoniodasilva authored
530
e6ab0d5 @drogus Lazy load `default_form_builder` if it's passed as a string
drogus authored
531 * Allow to lazy load `default_form_builder` by passing a `String` instead of a constant. *Piotr Sarnacki*
532
5c18bdc @pixeltrix Merge session arg with existing session instead of overwriting
pixeltrix authored
533 * Session arguments passed to `process` calls in functional tests are now merged into
534 the existing session, whereas previously they would replace the existing session.
535 This change may break some existing tests if they are asserting the exact contents of
536 the session but should not break existing tests that only assert individual keys.
537
538 *Andrew White*
539
47cbfbb @jmbejar Add index method to FormBuilder. Useful when you use field_for and ne…
jmbejar authored
540 * Add `index` method to FormBuilder class. *Jorge Bejar*
541
1141f71 @spastorino Remove the leading \n added by textarea on assert_select
spastorino authored
542 * Remove the leading \n added by textarea on assert_select. *Santiago Pastorino*
543
128cfbd @drogus config.action_view.embed_authenticity_token_in_remote_forms is true b…
drogus authored
544 * Changed default value for `config.action_view.embed_authenticity_token_in_remote_forms`
545 to `false`. This change breaks remote forms that need to work also without javascript,
546 so if you need such behavior, you can either set it to `true` or explicitly pass
547 `:authenticity_token => true` in form options
548
da5a47e @rafaelfranca Update the guides and CHANGELOG
rafaelfranca authored
549 * Added ActionDispatch::SSL middleware that when included force all the requests to be under HTTPS protocol. *Rafael Mendonça França*
550
2731ffa @nashby fix typo in AP CHANGELOG [ci skip]
nashby authored
551 * Add `include_hidden` option to select tag. With `:include_hidden => false` select with `multiple` attribute doesn't generate hidden input with blank value. *Vasiliy Ermolovich*
54a75e1 @nashby add 'include_hidden' option to select tag, closes #5402
nashby authored
552
f12f071 @parndt Documented the removal of size from text_field based helpers and cols…
parndt authored
553 * Removed default `size` option from the `text_field`, `search_field`, `telephone_field`, `url_field`, `email_field` helpers. *Philip Arndt*
554
555 * Removed default `cols` and `rows` options from the `text_area` helper. *Philip Arndt*
556
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
557 * Adds support for layouts when rendering a partial with a given collection. *serabe*
6e0a763 @Serabe Adds line to change log and update documentation.
Serabe authored
558
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
559 * Allows the route helper `root` to take a string argument. For example, `root 'pages#main'`. *bcardarella*
cf75417 @vijaydev document the shortcut to the root route helper [ci skip]
vijaydev authored
560
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
561 * Forms of persisted records use always PATCH (via the `_method` hack). *fxn*
b7a0945 @fxn uses PATCH for the forms of persisted records, and routes PATCH and P…
fxn authored
562
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
563 * For resources, both PATCH and PUT are routed to the `update` action. *fxn*
b7a0945 @fxn uses PATCH for the forms of persisted records, and routes PATCH and P…
fxn authored
564
c04a084 @pixeltrix Update documentation for force_ssl - closes #5023.
pixeltrix authored
565 * Don't ignore `force_ssl` in development. This is a change of behavior - use a `:if` condition to recreate the old behavior.
566
567 class AccountsController < ApplicationController
568 force_ssl :if => :ssl_configured?
569
570 def ssl_configured?
571 !Rails.env.development?
572 end
573 end
574
575 *Pat Allan*
576
5497432 @fxn updates CHANGELOGs to register changes in 002713c
fxn authored
577 * Adds support for the PATCH verb:
578 * Request objects respond to `patch?`.
579 * Routes have a new `patch` method, and understand `:patch` in the
580 existing places where a verb is configured, like `:via`.
581 * New method `patch` available in functional tests.
582 * If `:patch` is the default verb for updates, edits are
583 tunneled as PATCH rather than as PUT, and routing acts accordingly.
584 * New method `patch_via_redirect` available in integration tests.
585
586 *dlee*
587
ad46884 @jeremy Integration tests support the OPTIONS http method
jeremy authored
588 * Integration tests support the `OPTIONS` method. *Jeremy Kemper*
589
ce51edb @fxn let expires_in accept a must_revalidate flag
fxn authored
590 * `expires_in` accepts a `must_revalidate` flag. If true, "must-revalidate"
591 is added to the Cache-Control header. *fxn*
592
d6b26a6 @exviva Add HTML5 input[type="date"] helper
exviva authored
593 * Add `date_field` and `date_field_tag` helpers which render an `input[type="date"]` tag *Olek Janiszewski*
594
bcd3b87 @sikachu Add *_url helpers to get the full assets URL
sikachu authored
595 * Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`, `video_url`, and `font_url`
596 to assets tag helper. These URL helpers will return the full path to your assets. This is useful
597 when you are going to reference this asset from external host. *Prem Sichanugrist*
598
3def1c8 @sikachu Fix override API response bug in respond_with
sikachu authored
599 * Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
600
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
601 * Allow `value_method` and `text_method` arguments from `collection_select` and
602 `options_from_collection_for_select` to receive an object that responds to `:call`,
603 such as a `proc`, to evaluate the option in the current element context. This works
604 the same way with `collection_radio_buttons` and `collection_check_boxes`.
605
606 *Carlos Antonio da Silva + Rafael Mendonça França*
607
608 * Add `collection_check_boxes` form helper, similar to `collection_select`:
609 Example:
610
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
611 collection_check_boxes :post, :author_ids, Author.all, :id, :name
612 # Outputs something like:
613 <input id="post_author_ids_1" name="post[author_ids][]" type="checkbox" value="1" />
614 <label for="post_author_ids_1">D. Heinemeier Hansson</label>
615 <input id="post_author_ids_2" name="post[author_ids][]" type="checkbox" value="2" />
616 <label for="post_author_ids_2">D. Thomas</label>
617 <input name="post[author_ids][]" type="hidden" value="" />
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
618
619 The label/check_box pairs can be customized with a block.
620
621 *Carlos Antonio da Silva + Rafael Mendonça França*
622
623 * Add `collection_radio_buttons` form helper, similar to `collection_select`:
624 Example:
625
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
626 collection_radio_buttons :post, :author_id, Author.all, :id, :name
627 # Outputs something like:
628 <input id="post_author_id_1" name="post[author_id]" type="radio" value="1" />
629 <label for="post_author_id_1">D. Heinemeier Hansson</label>
630 <input id="post_author_id_2" name="post[author_id]" type="radio" value="2" />
631 <label for="post_author_id_2">D. Thomas</label>
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
632
633 The label/radio_button pairs can be customized with a block.
634
635 *Carlos Antonio da Silva + Rafael Mendonça França*
636
3d10955 @carlosantoniodasilva Replicate :form html5 attribute to hidden field for check_box
carlosantoniodasilva authored
637 * check_box with `:form` html5 attribute will now replicate the `:form`
638 attribute to the hidden field as well. *Carlos Antonio da Silva*
639
a4c120f @dhh Do not include the authenticity token in forms where remote: true as …
dhh authored
640 * Turn off verbose mode of rack-cache, we still have X-Rack-Cache to
641 check that info. Closes #5245. *Santiago Pastorino*
642
b03e55d @carlosantoniodasilva Do not generate label for attribute when giving nil
carlosantoniodasilva authored
643 * `label` form helper accepts :for => nil to not generate the attribute. *Carlos Antonio da Silva*
644
01b4a7c @rafaelfranca No need to check html_safe? twice
rafaelfranca authored
645 * Add `:format` option to number_to_percentage *Rodrigo Flores*
646
0409c69 @fxn some copy-editing I did in passing
fxn authored
647 * Add `config.action_view.logger` to configure logger for Action View. *Rafael Mendonça França*
5a6ea53 @rafaelfranca ActionView now has its own logger
rafaelfranca authored
648
0409c69 @fxn some copy-editing I did in passing
fxn authored
649 * Deprecated `ActionController::Integration` in favour of `ActionDispatch::Integration`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
650
0409c69 @fxn some copy-editing I did in passing
fxn authored
651 * Deprecated `ActionController::IntegrationTest` in favour of `ActionDispatch::IntegrationTest`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
652
0409c69 @fxn some copy-editing I did in passing
fxn authored
653 * Deprecated `ActionController::PerformanceTest` in favour of `ActionDispatch::PerformanceTest`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
654
0409c69 @fxn some copy-editing I did in passing
fxn authored
655 * Deprecated `ActionController::AbstractRequest` in favour of `ActionDispatch::Request`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
656
0409c69 @fxn some copy-editing I did in passing
fxn authored
657 * Deprecated `ActionController::Request` in favour of `ActionDispatch::Request`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
658
0409c69 @fxn some copy-editing I did in passing
fxn authored
659 * Deprecated `ActionController::AbstractResponse` in favour of `ActionDispatch::Response`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
660
0409c69 @fxn some copy-editing I did in passing
fxn authored
661 * Deprecated `ActionController::Response` in favour of `ActionDispatch::Response`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
662
0409c69 @fxn some copy-editing I did in passing
fxn authored
663 * Deprecated `ActionController::Routing` in favour of `ActionDispatch::Routing`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionC…
vatrai authored
664
0409c69 @fxn some copy-editing I did in passing
fxn authored
665 * `check_box helper` with `:disabled => true` will generate a disabled
666 hidden field to conform with the HTML convention where disabled fields are
667 not submitted with the form. This is a behavior change, previously the hidden
668 tag had a value of the disabled checkbox. *Tadas Tamosauskas*
9bd38f3 check_box helper with :disabled => true generates disabled hidden fie…
Tadas Tamošauskas authored
669
a5976cc @lucascaton Remove slash from favicon_link_tag method attribute
lucascaton authored
670 * `favicon_link_tag` helper will now use the favicon in app/assets by default. *Lucas Caton*
671
da5a47e @rafaelfranca Update the guides and CHANGELOG
rafaelfranca authored
672 * `ActionView::Helpers::TextHelper#highlight` now defaults to the
673 HTML5 `mark` element. *Brian Cardarella*
e4915e1 @bcardarella Highlight defaults to HTML5 `mark` element
bcardarella authored
674
810a50d @fxn CHANGELOGs are now per branch
fxn authored
675 Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/actionpack/CHANGELOG.md) for previous changes.
Something went wrong with that request. Please try again.