Skip to content

HTTPS clone URL

Subversion checkout URL

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