Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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