Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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