Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 547 lines (350 sloc) 22.182 kb
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
1 ## Rails 4.0.0 (unreleased) ##
e2cc653 @josevalim Do not deprecate performed.
josevalim authored
2
a6cfd33 @jeremy Add a changelog entry for asset aliasing update in sprockets-rails. Supp...
jeremy authored
3 * Precompiled assets include aliases from foo.js to foo/index.js and vice versa.
4
5 # Precompiles phone-<digest>.css and aliases phone/index.css to phone.css.
6 config.assets.precompile = [ 'phone.css' ]
7
8 # Precompiles phone/index-<digest>.css and aliases phone.css to phone/index.css.
9 config.assets.precompile = [ 'phone/index.css' ]
10
11 # Both of these work with either precompile thanks to their aliases.
12 <%= stylesheet_link_tag 'phone', media: 'all' %>
13 <%= stylesheet_link_tag 'phone/index', media: 'all' %>
14
15 *Jeremy Kemper*
16
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
17 * `assert_template` is no more passing with what ever string that matches
18 with the template name.
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
19
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
20 Before when we have a template `/layout/hello.html.erb`, `assert_template`
21 was passing with any string that matches. This behavior allowed false
22 positive like:
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
23
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
24 assert_template "layout"
25 assert_template "out/hello"
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
26
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
27 Now it only passes with:
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
28
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
29 assert_template "layout/hello"
30 assert_template "hello"
31
32 Fixes #3849.
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
33
623f2fb @rafaelfranca Whitespaces :scissors: [ci skip]
rafaelfranca authored
34 *Hugolnx*
19dff78 @HugoLnx `assert_template` no more passing with what ever string that matches.
HugoLnx authored
35
2b9bce8 @NARKOZ allow to pass numerical value to size option in image_tag
NARKOZ authored
36 * `image_tag` will set the same width and height for image if numerical value
37 passed to `size` option.
38
39 *Nihad Abbasov*
40
9e2948e @grosser depreacte unused Mime::Type#verify_request? and Mime::Type.browser_gener...
grosser authored
41 * Deprecate Mime::Type#verify_request? and Mime::Type.browser_generated_types,
42 since they are no longer used inside of Rails, they will be removed in Rails 4.1
43
44 *Michael Grosser*
45
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
46 * `ActionDispatch::Http::UploadedFile` now delegates `close` to its tempfile. *Sergio Gil*
47
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
48 * Add `ActionController::StrongParameters`, this module converts `params` hash into
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
49 an instance of ActionController::Parameters that allows whitelisting of permitted
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
50 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
51 For more details check the documentation of the module or the
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
52 [strong_parameters gem](https://github.com/rails/strong_parameters)
53
54 *DHH + Guillermo Iguaran*
55
56 * Remove Integration between `attr_accessible`/`attr_protected` and
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
57 `ActionController::ParamsWrapper`. ParamWrapper now wraps all the parameters returned
1f4c89f @guilleiguaran Update changelogs to add entries about strong_parameters integration
guilleiguaran authored
58 by the class method attribute_names
59
60 *Guillermo Iguaran*
61
370dcd9 @senny log 404 status when ActiveRecord::RecordNotFound was raised (#7646)
senny authored
62 * Fix #7646, the log now displays the correct status code when an exception is raised.
63
64 *Yves Senn*
65
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
66 * Allow pass couple extensions to `ActionView::Template.register_template_handler` call.
67
68 *Tima Maslyuchenko*
13b0af7 @timsly allowing pass couple extension to register_template_handler call
timsly authored
69
641ea69 @Draiken Removing to_shorthand from default_controller_and_action. Fixes #6497
Draiken authored
70 * Fixed a bug with shorthand routes scoped with the `:module` option not
71 adding the module to the controller as described in issue #6497.
72 This should now work properly:
73
74 scope :module => "engine" do
75 get "api/version" # routes to engine/api#version
76 end
512eb97 @rafaelfranca Put the new CHANGELOG entries always in the top [ci skip]
rafaelfranca authored
77
641ea69 @Draiken Removing to_shorthand from default_controller_and_action. Fixes #6497
Draiken authored
78 *Luiz Felipe Garcia Pereira*
79
59b8b82 @guilleiguaran Fix changelog entry about sprockets-rails
guilleiguaran authored
80 * Sprockets integration has been extracted from Action Pack to the `sprockets-rails`
81 gem. `rails` gem is depending on `sprockets-rails` by default.
0654f76 @guilleiguaran Add missing entries in AP changelog
guilleiguaran authored
82
83 *Guillermo Iguaran*
84
dadfa9a @senny cleanup, remove whitespace from CHANGELOG
senny authored
85 * `ActionDispatch::Session::MemCacheStore` now uses `dalli` instead of the deprecated
86 `memcache-client` gem. As side effect the autoloading of unloaded classes objects
87 saved as values in session isn't supported anymore when mem_cache session store is
88 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
89
90 *Arun Agrawal + Guillermo Iguaran*
91
cd461c3 Support for multiple etags in an If-None-Match header
Travis Warlick authored
92 * Support multiple etags in If-None-Match header. *Travis Warlick*
93
2385129 @lest update CHANGELOG
lest authored
94 * Allow to configure how unverified request will be handled using `:with`
95 option in `protect_from_forgery` method.
96
97 Valid unverified request handling methods are:
98
99 - `:exception` - Raises ActionController::InvalidAuthenticityToken exception.
100 - `:reset_session` - Resets the session.
101 - `:null_session` - Provides an empty session during request but doesn't
102 reset it completely. Used as default if `:with` option is not specified.
103
104 New applications are generated with:
105
106 protect_from_forgery :with => :exception
107
108 *Sergey Nartimov*
109
de1060f @guilleiguaran Rename .rb template handler to .ruby to avoid conflicts with mustache vi...
guilleiguaran authored
110 * Add .ruby template handler, this handler simply allows arbitrary Ruby code as a template. *Guillermo Iguaran*
ab7ae68 @guilleiguaran Add .rb template handler
guilleiguaran authored
111
aaa33e6 @carlosantoniodasilva Improve latest AR and AP changelog entries
carlosantoniodasilva authored
112 * Add `separator` option for `ActionView::Helpers::TextHelper#excerpt`:
113
114 excerpt('This is a very beautiful morning', 'very', :separator => ' ', :radius => 1)
115 # => ...a very beautiful...
116
117 *Guirec Corbel*
963c50e @GCorbel Add a separation option for the excerpt function
GCorbel authored
118
ed5c938 @dhh Added controller-level etag additions that will be part of the action et...
dhh authored
119 * Added controller-level etag additions that will be part of the action etag computation *Jeremy Kemper/DHH*
120
ee2da01 @aaronbrethorst Fix Markdown rendering of 'controller-level etag additions' feature
aaronbrethorst authored
121 class InvoicesController < ApplicationController
122 etag { current_user.try :id }
123
124 def show
125 # Etag will differ even for the same invoice when it's viewed by a different current_user
126 @invoice = Invoice.find(params[:id])
127 fresh_when(@invoice)
128 end
ed5c938 @dhh Added controller-level etag additions that will be part of the action et...
dhh authored
129 end
130
0409c69 @fxn some copy-editing I did in passing
fxn authored
131 * 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 (originall...
dhh authored
132
0b6175a @schneems Add Missing Keys from Journey on failed URL format
schneems authored
133 * When building a URL fails, add missing keys provided by Journey. Failed URL
134 generation now returns a 500 status instead of a 404.
135
136 *Richard Schneeman*
137
0409c69 @fxn some copy-editing I did in passing
fxn authored
138 * Deprecate availbility of `ActionView::RecordIdentifier` in controllers by default.
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
139 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
140 really needs it. RecordIdentifier will be removed from `ActionController::Base`
141 in Rails 4.1. *Piotr Sarnacki*
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
142
0409c69 @fxn some copy-editing I did in passing
fxn authored
143 * Fix `ActionView::RecordIdentifier` to work as a singleton. *Piotr Sarnacki*
daa0ed3 @drogus Update AP's CHANGELOG with user facing changes
drogus authored
144
0409c69 @fxn some copy-editing I did in passing
fxn authored
145 * 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
146 *Piotr Sarnacki*
147
0409c69 @fxn some copy-editing I did in passing
fxn authored
148 * 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
149 require it directly, please use 'action_view/vendor/html-scanner', reference to
0409c69 @fxn some copy-editing I did in passing
fxn authored
150 '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
151
130fe2b @nashby correct handling of date selects when using both disabled and discard op...
nashby authored
152 * Fix handling of date selects when using both disabled and discard options.
153 Fixes #7431.
154
155 *Vasiliy Ermolovich*
156
0ffe190 @sikachu Extract ActiveRecord::SessionStore from Rails
sikachu authored
157 * `ActiveRecord::SessionStore` is extracted out of Rails into a gem `activerecord-session_store`.
158 Setting `config.session_store` to `:active_record_store` will no longer work and will break
159 if the `activerecord-session_store` gem isn't available. *Prem Sichanugrist*
160
0409c69 @fxn some copy-editing I did in passing
fxn authored
161 * Fix `select_tag` when `option_tags` is nil.
684a040 @rafaelfranca Add CHANGELOG entry for #7410
rafaelfranca authored
162 Fixes #7404.
163
164 *Sandeep Ravichandran*
165
0409c69 @fxn some copy-editing I did in passing
fxn authored
166 * 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 dire...
dhh authored
167
168 Example of using this for custom iphone views with an HTML fallback:
169
ed491ae Fix slightly broken Markdown syntax in actionpack/CHANGELOG.md
hollowspace authored
170 class ApplicationController < ActionController::Base
171 before_filter :adjust_format_for_iphone_with_html_fallback
172
173 private
174 def adjust_format_for_iphone_with_html_fallback
175 request.formats = [ :iphone, :html ] if request.env["HTTP_USER_AGENT"][/iPhone/]
176 end
177 end
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats dire...
dhh authored
178
0409c69 @fxn some copy-editing I did in passing
fxn authored
179 *DHH*
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats dire...
dhh authored
180
0bd7b07 @rafaelfranca Add CHANGELOG entry and documentation for Routing Concerns
rafaelfranca authored
181 * Add Routing Concerns to declare common routes that can be reused inside
182 others resources and routes.
183
184 Code before:
185
186 resources :messages do
187 resources :comments
188 end
189
190 resources :posts do
191 resources :comments
192 resources :images, only: :index
193 end
194
195 Code after:
196
197 concern :commentable do
198 resources :comments
199 end
200
201 concern :image_attachable do
202 resources :images, only: :index
203 end
204
205 resources :messages, concerns: :commentable
206
207 resources :posts, concerns: [:commentable, :image_attachable]
208
0d0d462 @dhh Add Request#formats=(extensions) that lets you set multiple formats dire...
dhh authored
209 *DHH + Rafael Mendonça França*
0bd7b07 @rafaelfranca Add CHANGELOG entry and documentation for Routing Concerns
rafaelfranca authored
210
0409c69 @fxn some copy-editing I did in passing
fxn authored
211 * 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
212
0409c69 @fxn some copy-editing I did in passing
fxn authored
213 * Raises an `ArgumentError` when the first argument in `form_for` contain `nil`
347f8c5 @rafaelfranca Add CHANGELOG entry for #7314
rafaelfranca authored
214 or is empty.
215
216 *Richard Schneeman*
217
4848bf3 @aantix Added X-Content-Type-Options to the header defaults.
aantix authored
218 * Add 'X-Frame-Options' => 'SAMEORIGIN'
219 'X-XSS-Protection' => '1; mode=block' and
220 'X-Content-Type-Options' => 'nosniff'
0b11dbe @spastorino Add 'X-Frame-Options' => 'SAMEORIGIN' and 'X-XSS-Protection' => '1; mode...
spastorino authored
221 as default headers.
222
223 *Egor Homakov*
224
b540f4c @dhh Allow data attributes to be set as a first-level option for form_for, so...
dhh authored
225 * 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*
226
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
227 * Deprecate `button_to_function` and `link_to_function` helpers.
228
229 We recommend the use of Unobtrusive JavaScript instead. For example:
230
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
231 link_to "Greeting", "#", :class => "nav_link"
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
232
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
233 $(function() {
234 $('.nav_link').click(function() {
235 // Some complex code
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
236
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
237 return false;
238 });
5d15287 @rafaelfranca Deprecate `button_to_function` and `link_to_function` helpers.
rafaelfranca authored
239 });
240
241 or
242
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
243 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
244
245 for simple cases.
246
247 *Rafael Mendonça França*
248
02c9654 @sikachu Do not include application.js if it doesn't exists
sikachu authored
249 * `javascript_include_tag :all` will now not include `application.js` if the file does not exists. *Prem Sichanugrist*
250
39f4f28 @rafaelfranca Add CHANGELOG entry for 3c731a4ad62430100ba0b65bc966aa6dc6280c5f
rafaelfranca authored
251 * Send an empty response body when call `head` with status between 100 and 199, 204, 205 or 304.
252
253 *Armand du Plessis*
254
0409c69 @fxn some copy-editing I did in passing
fxn authored
255 * 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
256
9bcd018 @fxn gives credit to Aaron in the CHANGELOG entry for AC::Live
fxn authored
257 * Added `ActionController::Live`. Mix it in to your controller and you can
0899be5 @tenderlove updated changelog
tenderlove authored
258 stream data to the client live. For example:
259
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
260 class FooController < ActionController::Base
261 include ActionController::Live
0899be5 @tenderlove updated changelog
tenderlove authored
262
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
263 def index
264 100.times {
265 # Client will see this as it's written
266 response.stream.write "hello world\n"
267 sleep 1
268 }
269 response.stream.close
270 end
0899be5 @tenderlove updated changelog
tenderlove authored
271 end
272
9bcd018 @fxn gives credit to Aaron in the CHANGELOG entry for AC::Live
fxn authored
273 *Aaron Patterson*
274
275 * Remove `ActionDispatch::Head` middleware in favor of `Rack::Head`. *Santiago Pastorino*
14a1df1 @spastorino Add CHANGELOG entry
spastorino authored
276
9345a11 Add back `:confirm` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
277 * 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
278
9345a11 Add back `:confirm` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
279 *Carlos Galdino + Rafael Mendonça França*
fb8a830 @carlosgaldino Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` option
carlosgaldino authored
280
3bbc2fb @carlosantoniodasilva Improve and fix AP changelog, sync release notes [ci skip]
carlosantoniodasilva authored
281 * 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
282
238a425 @kennyj Added support add_flash_types
kennyj authored
283 * Add `ActionController::Flash.add_flash_types` method to allow people to register their own flash types. e.g.:
284
285 class ApplicationController
286 add_flash_types :error, :warning
287 end
288
3bbc2fb @carlosantoniodasilva Improve and fix AP changelog, sync release notes [ci skip]
carlosantoniodasilva authored
289 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
290
291 *kennyj*
292
ab72040 @carlosantoniodasilva Update AR and AP changelogs [ci skip]
carlosantoniodasilva authored
293 * Remove Active Model dependency from Action Pack. *Guillermo Iguaran*
294
c42a7a0 @kennyj Support unicode character route in config/routes.rb.
kennyj authored
295 * Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping:
296
297 get Rack::Utils.escape('こんにちは') => 'home#index'
298
299 You just have to write the unicode route:
300
301 get 'こんにちは' => 'home#index'
302
303 *kennyj*
304
bd8c0b8 @spastorino Return proper format on exceptions
spastorino authored
305 * Return proper format on exceptions. *Santiago Pastorino*
306
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
307 * 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
308
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
309 * 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
310
4791822 @jeremyf Extracted redirect logic from ActionController::Force::ClassMethods.forc...
jeremyf authored
311 * Extracted redirect logic from `ActionController::ForceSSL::ClassMethods.force_ssl` into `ActionController::ForceSSL#force_ssl_redirect`
312
313 *Jeremy Friesen*
314
0409c69 @fxn some copy-editing I did in passing
fxn authored
315 * 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
316 to fit into the name parameter, e.g.:
317
318 <%= button_to [:make_happy, @user] do %>
319 Make happy <strong><%= @user.name %></strong>
320 <% end %>
321 # => "<form method="post" action="/users/1/make_happy" class="button_to">
322 # <div>
323 # <button type="submit">
324 # Make happy <strong>Name</strong>
325 # </button>
326 # </div>
327 # </form>"
328
329 *Sergey Nartimov*
330
e4aaac1 @drogus Fix sorting of helpers from different paths
drogus authored
331 * change a way of ordering helpers from several directories. Previously,
332 when loading helpers from multiple paths, all of the helpers files were
333 gathered into one array an then they were sorted. Helpers from different
334 directories should not be mixed before loading them to make loading more
335 predictable. The most common use case for such behavior is loading helpers
336 from engines. When you load helpers from application and engine Foo, in
337 that order, first rails will load all of the helpers from application,
338 sorted alphabetically and then it will do the same for Foo engine.
339
340 *Piotr Sarnacki*
341
215d41d @carlosantoniodasilva Update 4.0 Release Notes with changelogs [ci skip]
carlosantoniodasilva authored
342 * `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
343 false to not escape the result.
344
345 *Li Ellis Gallardo + Rafael Mendonça França*
346
eedc513 @rafaelfranca Update the documentation and add CHANGELOG entry
rafaelfranca authored
347 * `truncate` now accepts a block to show extra content when the text is truncated. *Li Ellis Gallardo*
348
b02d14a @carlosgaldino Add several HTML5 input helpers
carlosgaldino authored
349 * Add `week_field`, `week_field_tag`, `month_field`, `month_field_tag`, `datetime_local_field`,
350 `datetime_local_field_tag`, `datetime_field` and `datetime_field_tag` helpers. *Carlos Galdino*
351
1ce4b5b @carlosgaldino Add HTML5 input[type="color"] helper
carlosgaldino authored
352 * Add `color_field` and `color_field_tag` helpers. *Carlos Galdino*
353
a78ee05 @rafaelfranca Fix CHANGELOG order and add a brief description of the changes in the
rafaelfranca authored
354 * `assert_generates`, `assert_recognizes`, and `assert_routing` all raise
355 `Assertion` instead of `RoutingError` *David Chelimsky*
356
3fc561a @pixeltrix Return 400 Bad Request for URL paths with invalid encoding.
pixeltrix authored
357 * URL path parameters with invalid encoding now raise ActionController::BadRequest. *Andrew White*
358
66eb3f0 @pixeltrix Raise ActionController::BadRequest for malformed parameter hashes.
pixeltrix authored
359 * Malformed query and request parameter hashes now raise ActionController::BadRequest. *Andrew White*
360
0e207a4 @carlosantoniodasilva Clarify grouped_options_for_select method API, add changelog entry
carlosantoniodasilva authored
361 * Add `divider` option to `grouped_options_for_select` to generate a separator
362 `optgroup` automatically, and deprecate `prompt` as third argument, in favor
363 of using an options hash. *Nicholas Greenfield*
364
446940c @soulim Add HTML5 input[type="time"] helper
soulim authored
365 * Add `time_field` and `time_field_tag` helpers which render an `input[type="time"]` tag. *Alex Soulim*
366
90ec863 @iHiD Removed old text_helper apis for highlight, excerpt and word_wrap
iHiD authored
367 * Removed old text_helper apis for highlight, excerpt and word_wrap *Jeremy Walker*
368
de29c30 @josevalim Update actionpack/CHANGELOG.md
josevalim authored
369 * Templates without a handler extension now raises a deprecation warning but still
370 defaults to ERb. In future releases, it will simply return the template contents. *Steve Klabnik*
371
0106e5f Add back `:disable_with` and change deprecation horizon to 4.1
Carlos Galdino + Rafael Mendonça França authored
372 * 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-with'`...
josevalim authored
373
374 *Carlos Galdino + Rafael Mendonça França*
375
71931e2 @rafaelfranca Remove `:mouseover` option from `image_tag` helper.
rafaelfranca authored
376 * Remove `:mouseover` option from `image_tag` helper. *Rafael Mendonça França*
377
378 * The `select` method (select tag) forces :include_blank if `required` is true and
2e9c7cd Changed the changelog and documentation about
Angelo Capilleri authored
379 `display size` is one and `multiple` is not true. *Angelo Capilleri*
380
9b4514c @pixeltrix Copy literal route constraints to defaults - fixes #3571 and #6224.
pixeltrix authored
381 * Copy literal route constraints to defaults so that url generation know about them.
382 The copied constraints are `:protocol`, `:subdomain`, `:domain`, `:host` and `:port`.
383
384 *Andrew White*
385
c02846f @josevalim Update actionpack/CHANGELOG.md
josevalim authored
386 * `respond_to` and `respond_with` now raise ActionController::UnknownFormat instead
387 of directly returning head 406. The exception is rescued and converted to 406
388 in the exception handling middleware. *Steven Soroka*
389
a544e00 @alindeman Allows assert_redirected_to to accept a regular expression
alindeman authored
390 * Allows `assert_redirected_to` to match against a regular expression. *Andy Lindeman*
391
36720af @spastorino Add CHANGELOG entry
spastorino authored
392 * Add backtrace to development routing error page. *Richard Schneeman*
393
4a2d53a @dmitriy-kiriyenko Replace boolean argument with an options hash.
dmitriy-kiriyenko authored
394 * Replace `include_seconds` boolean argument with `:include_seconds => true` option
395 in `distance_of_time_in_words` and `time_ago_in_words` signature. *Dmitriy Kiriyenko*
396
ab318d2 @carlosantoniodasilva Add changelog entry and some docs for collection + layout
carlosantoniodasilva authored
397 * Make current object and counter (when it applies) variables accessible when
398 rendering templates with :object / :collection. *Carlos Antonio da Silva*
399
cf1f670 @joliss Fix MIME type in CHANGELOG
joliss authored
400 * 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
401
e6ab0d5 @drogus Lazy load `default_form_builder` if it's passed as a string
drogus authored
402 * Allow to lazy load `default_form_builder` by passing a `String` instead of a constant. *Piotr Sarnacki*
403
5c18bdc @pixeltrix Merge session arg with existing session instead of overwriting
pixeltrix authored
404 * Session arguments passed to `process` calls in functional tests are now merged into
405 the existing session, whereas previously they would replace the existing session.
406 This change may break some existing tests if they are asserting the exact contents of
407 the session but should not break existing tests that only assert individual keys.
408
409 *Andrew White*
410
47cbfbb @jmbejar Add index method to FormBuilder. Useful when you use field_for and need ...
jmbejar authored
411 * Add `index` method to FormBuilder class. *Jorge Bejar*
412
1141f71 @spastorino Remove the leading \n added by textarea on assert_select
spastorino authored
413 * Remove the leading \n added by textarea on assert_select. *Santiago Pastorino*
414
128cfbd @drogus config.action_view.embed_authenticity_token_in_remote_forms is true by d...
drogus authored
415 * Changed default value for `config.action_view.embed_authenticity_token_in_remote_forms`
416 to `false`. This change breaks remote forms that need to work also without javascript,
417 so if you need such behavior, you can either set it to `true` or explicitly pass
418 `:authenticity_token => true` in form options
419
da5a47e @rafaelfranca Update the guides and CHANGELOG
rafaelfranca authored
420 * Added ActionDispatch::SSL middleware that when included force all the requests to be under HTTPS protocol. *Rafael Mendonça França*
421
2731ffa @nashby fix typo in AP CHANGELOG [ci skip]
nashby authored
422 * 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
423
f12f071 @parndt Documented the removal of size from text_field based helpers and cols, r...
parndt authored
424 * Removed default `size` option from the `text_field`, `search_field`, `telephone_field`, `url_field`, `email_field` helpers. *Philip Arndt*
425
426 * Removed default `cols` and `rows` options from the `text_area` helper. *Philip Arndt*
427
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
428 * 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
429
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
430 * 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
431
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
432 * 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 PUT ...
fxn authored
433
d804790 @rafaelfranca Fix my name in the CHANGELOG to follow the convention
rafaelfranca authored
434 * 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 PUT ...
fxn authored
435
c04a084 @pixeltrix Update documentation for force_ssl - closes #5023.
pixeltrix authored
436 * Don't ignore `force_ssl` in development. This is a change of behavior - use a `:if` condition to recreate the old behavior.
437
438 class AccountsController < ApplicationController
439 force_ssl :if => :ssl_configured?
440
441 def ssl_configured?
442 !Rails.env.development?
443 end
444 end
445
446 *Pat Allan*
447
5497432 @fxn updates CHANGELOGs to register changes in 002713c
fxn authored
448 * Adds support for the PATCH verb:
449 * Request objects respond to `patch?`.
450 * Routes have a new `patch` method, and understand `:patch` in the
451 existing places where a verb is configured, like `:via`.
452 * New method `patch` available in functional tests.
453 * If `:patch` is the default verb for updates, edits are
454 tunneled as PATCH rather than as PUT, and routing acts accordingly.
455 * New method `patch_via_redirect` available in integration tests.
456
457 *dlee*
458
ad46884 @jeremy Integration tests support the OPTIONS http method
jeremy authored
459 * Integration tests support the `OPTIONS` method. *Jeremy Kemper*
460
ce51edb @fxn let expires_in accept a must_revalidate flag
fxn authored
461 * `expires_in` accepts a `must_revalidate` flag. If true, "must-revalidate"
462 is added to the Cache-Control header. *fxn*
463
d6b26a6 @exviva Add HTML5 input[type="date"] helper
exviva authored
464 * Add `date_field` and `date_field_tag` helpers which render an `input[type="date"]` tag *Olek Janiszewski*
465
bcd3b87 @sikachu Add *_url helpers to get the full assets URL
sikachu authored
466 * Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`, `video_url`, and `font_url`
467 to assets tag helper. These URL helpers will return the full path to your assets. This is useful
468 when you are going to reference this asset from external host. *Prem Sichanugrist*
469
3def1c8 @sikachu Fix override API response bug in respond_with
sikachu authored
470 * Default responder will now always use your overridden block in `respond_with` to render your response. *Prem Sichanugrist*
471
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
472 * Allow `value_method` and `text_method` arguments from `collection_select` and
473 `options_from_collection_for_select` to receive an object that responds to `:call`,
474 such as a `proc`, to evaluate the option in the current element context. This works
475 the same way with `collection_radio_buttons` and `collection_check_boxes`.
476
477 *Carlos Antonio da Silva + Rafael Mendonça França*
478
479 * Add `collection_check_boxes` form helper, similar to `collection_select`:
480 Example:
481
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
482 collection_check_boxes :post, :author_ids, Author.all, :id, :name
483 # Outputs something like:
484 <input id="post_author_ids_1" name="post[author_ids][]" type="checkbox" value="1" />
485 <label for="post_author_ids_1">D. Heinemeier Hansson</label>
486 <input id="post_author_ids_2" name="post[author_ids][]" type="checkbox" value="2" />
487 <label for="post_author_ids_2">D. Thomas</label>
488 <input name="post[author_ids][]" type="hidden" value="" />
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
489
490 The label/check_box pairs can be customized with a block.
491
492 *Carlos Antonio da Silva + Rafael Mendonça França*
493
494 * Add `collection_radio_buttons` form helper, similar to `collection_select`:
495 Example:
496
8781b26 @rafaelfranca Sync CHANGELOGs [ci skip]
rafaelfranca authored
497 collection_radio_buttons :post, :author_id, Author.all, :id, :name
498 # Outputs something like:
499 <input id="post_author_id_1" name="post[author_id]" type="radio" value="1" />
500 <label for="post_author_id_1">D. Heinemeier Hansson</label>
501 <input id="post_author_id_2" name="post[author_id]" type="radio" value="2" />
502 <label for="post_author_id_2">D. Thomas</label>
f506c80 @carlosantoniodasilva Add changelog, docs and guides entries
carlosantoniodasilva authored
503
504 The label/radio_button pairs can be customized with a block.
505
506 *Carlos Antonio da Silva + Rafael Mendonça França*
507
3d10955 @carlosantoniodasilva Replicate :form html5 attribute to hidden field for check_box
carlosantoniodasilva authored
508 * check_box with `:form` html5 attribute will now replicate the `:form`
509 attribute to the hidden field as well. *Carlos Antonio da Silva*
510
a4c120f @dhh Do not include the authenticity token in forms where remote: true as aja...
dhh authored
511 * Turn off verbose mode of rack-cache, we still have X-Rack-Cache to
512 check that info. Closes #5245. *Santiago Pastorino*
513
b03e55d @carlosantoniodasilva Do not generate label for attribute when giving nil
carlosantoniodasilva authored
514 * `label` form helper accepts :for => nil to not generate the attribute. *Carlos Antonio da Silva*
515
01b4a7c @rafaelfranca No need to check html_safe? twice
rafaelfranca authored
516 * Add `:format` option to number_to_percentage *Rodrigo Flores*
517
0409c69 @fxn some copy-editing I did in passing
fxn authored
518 * 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
519
0409c69 @fxn some copy-editing I did in passing
fxn authored
520 * Deprecated `ActionController::Integration` in favour of `ActionDispatch::Integration`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
521
0409c69 @fxn some copy-editing I did in passing
fxn authored
522 * Deprecated `ActionController::IntegrationTest` in favour of `ActionDispatch::IntegrationTest`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
523
0409c69 @fxn some copy-editing I did in passing
fxn authored
524 * Deprecated `ActionController::PerformanceTest` in favour of `ActionDispatch::PerformanceTest`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
525
0409c69 @fxn some copy-editing I did in passing
fxn authored
526 * Deprecated `ActionController::AbstractRequest` in favour of `ActionDispatch::Request`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
527
0409c69 @fxn some copy-editing I did in passing
fxn authored
528 * Deprecated `ActionController::Request` in favour of `ActionDispatch::Request`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
529
0409c69 @fxn some copy-editing I did in passing
fxn authored
530 * Deprecated `ActionController::AbstractResponse` in favour of `ActionDispatch::Response`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
531
0409c69 @fxn some copy-editing I did in passing
fxn authored
532 * Deprecated `ActionController::Response` in favour of `ActionDispatch::Response`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
533
0409c69 @fxn some copy-editing I did in passing
fxn authored
534 * Deprecated `ActionController::Routing` in favour of `ActionDispatch::Routing`.
34ad69a @vatrai changelog entry for deprecated ActionController::Integration, ActionCont...
vatrai authored
535
0409c69 @fxn some copy-editing I did in passing
fxn authored
536 * `check_box helper` with `:disabled => true` will generate a disabled
537 hidden field to conform with the HTML convention where disabled fields are
538 not submitted with the form. This is a behavior change, previously the hidden
539 tag had a value of the disabled checkbox. *Tadas Tamosauskas*
9bd38f3 check_box helper with :disabled => true generates disabled hidden field....
Tadas Tamošauskas authored
540
a5976cc @lucascaton Remove slash from favicon_link_tag method attribute
lucascaton authored
541 * `favicon_link_tag` helper will now use the favicon in app/assets by default. *Lucas Caton*
542
da5a47e @rafaelfranca Update the guides and CHANGELOG
rafaelfranca authored
543 * `ActionView::Helpers::TextHelper#highlight` now defaults to the
544 HTML5 `mark` element. *Brian Cardarella*
e4915e1 @bcardarella Highlight defaults to HTML5 `mark` element
bcardarella authored
545
810a50d @fxn CHANGELOGs are now per branch
fxn authored
546 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.