Skip to content

HTTPS clone URL

Subversion checkout URL

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