Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/actionpack/CHANGELOG

Revision 9242, 232.2 kB (checked in by rick, 3 months ago)

Automatically parse posted JSON content for Mime::JSON requests. [rick]

Line 
1 *SVN*
2
3 * Automatically parse posted JSON content for Mime::JSON requests.  [rick]
4
5   POST /posts
6   {"post": {"title": "Breaking News"}}
7
8   def create
9     @post = Post.create params[:post]
10     # ...
11   end
12
13 * add json_escape ERB util to escape html entities in json strings that are output in HTML pages. [rick]
14
15 * Provide a helper proxy to access helper methods from outside views. Closes #10839 [Josh Peek]
16   e.g. ApplicationController.helpers.simple_format(text)
17
18 * Improve documentation. [Xavier Noria, leethal, jerome]
19
20 * Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546 [josh, eventualbuddha, Pratik]
21
22 * Support render :partial => collection of heterogeneous elements.  #11491 [Zach Dennis]
23
24 * Avoid remote_ip spoofing.  [Brian Candler]
25
26 * Added support for regexp flags like ignoring case in the :requirements part of routes declarations #11421 [NeilW]
27
28 * Fixed that ActionController::Base#read_multipart would fail if boundary was exactly 10240 bytes #10886 [ariejan]
29
30 * Fixed HTML::Tokenizer (used in sanitize helper) didn't handle unclosed CDATA tags #10071 [esad, packagethief]
31
32 * Improve documentation. [Radar, Jan De Poorter, chuyeow, xaviershay, danger, miloops, Xavier Noria,  Sunny Ripert]
33
34 * Fixed that FormHelper#radio_button would produce invalid ids #11298 [harlancrystal]
35
36 * Added :confirm option to submit_tag #11415 [miloops]
37
38 * Fixed NumberHelper#number_with_precision to properly round in a way that works equally on Mac, Windows, Linux (closes #11409, #8275, #10090, #8027) [zhangyuanyi]
39
40 * Allow the #simple_format text_helper to take an html_options hash for each paragraph.  #2448 [Francois Beausoleil, thechrisoshow]
41
42 * Fix regression from filter refactoring where re-adding a skipped filter resulted in it being called twice.  [rick]
43
44 * Refactor filters to use Active Support callbacks.  #11235 [Josh Peek]
45
46 * Fixed that polymorphic routes would modify the input array #11363 [thomas.lee]
47
48 * Added :format option to NumberHelper#number_to_currency to enable better localization support #11149 [lylo]
49
50 * Fixed that TextHelper#excerpt would include one character too many #11268 [Irfy]
51
52 * Fix more obscure nested parameter hash parsing bug.  #10797 [thomas.lee]
53
54 * Added ActionView::Helpers::register_javascript/stylesheet_expansion to make it easier for plugin developers to inject multiple assets.  #10350 [lotswholetime]
55
56 * Fix nested parameter hash parsing bug.  #10797 [thomas.lee]
57
58 * Allow using named routes in ActionController::TestCase before any request has been made. Closes #11273 [alloy]
59
60 * Fixed that sweepers defined by cache_sweeper will be added regardless of the perform_caching setting. Instead, control whether the sweeper should be run with the perform_caching setting. This makes testing easier when you want to turn perform_caching on/off [DHH]
61
62 * Make MimeResponds::Responder#any work without explicit types. Closes #11140 [jaw6]
63
64 * Better error message for type conflicts when parsing params.  Closes #7962 [spicycode, matt]
65
66 * Remove unused ActionController::Base.template_class. Closes #10787 [Pratik]
67
68 * Moved template handlers related code from ActionView::Base to ActionView::Template. [Pratik]
69
70 * Tests for div_for and content_tag_for helpers. Closes #11223 [thechrisoshow]
71
72 * Allow file uploads in Integration Tests.  Closes #11091 [RubyRedRick]
73
74 * Refactor partial rendering into a PartialTemplate class. [Pratik]
75
76 * Added that requests with JavaScript as the priority mime type in the accept header and no format extension in the parameters will be treated as though their format was :js when it comes to determining which template to render. This makes it possible for JS requests to automatically render action.js.rjs files without an explicit respond_to block  [DHH]
77
78 * Tests for distance_of_time_in_words with TimeWithZone instances. Closes #10914 [ernesto.jimenez]
79
80 * Remove support for multivalued (e.g., '&'-delimited) cookies. [Jamis Buck]
81
82 * Fix problem with render :partial collections, records, and locals. #11057 [lotswholetime]
83
84 * Added support for naming concrete classes in sweeper declarations [DHH]
85
86 * Remove ERB trim variables from trace template in case ActionView::Base.erb_trim_mode is changed in the application.  #10098 [tpope, kampers]
87
88 * Fix typo in form_helper documentation.  #10650 [xaviershay, kampers]
89
90 * Fix bug with setting Request#format= after the getter has cached the value.  #10889 [cch1]
91
92 * Correct inconsistencies in RequestForgeryProtection docs.  #11032 [mislav]
93
94 * Introduce a Template class to ActionView.  #11024 [lifofifo]
95
96 * Introduce the :index option for form_for and fields_for to simplify multi-model forms (see http://railscasts.com/episodes/75).  #9883 [rmm5t]
97
98 * Introduce map.resources :cards, :as => 'tarjetas' to use a custom resource name in the URL: cards_path == '/tarjetas'.  #10578 [blj]
99
100 * TestSession supports indifferent access.  #7372 [tamc, Arsen7, mhackett, julik, jean.helou]
101
102 * Make assert_routing aware of the HTTP method used.  #8039 [mpalmer]
103   e.g. assert_routing({ :method => 'put', :path => '/product/321' }, { :controller => "product", :action => "update", :id => "321" })
104
105 * Make map.root accept a single symbol as an argument to declare an alias.  #10818 [bscofield]
106
107   e.g.  map.dashboard '/dashboard', :controller=>'dashboard'
108         map.root      :dashboard
109
110 * Handle corner case with image_tag when passed 'messed up' image names. #9018 [duncanbeevers, mpalmer]
111
112 * Add label_tag helper for generating elements. #10802 [DefV]
113
114 * Introduce TemplateFinder to handle view paths and lookups.  #10800 [Pratik Naik]
115
116 * Performance: optimize route recognition. Large speedup for apps with many resource routes.  #10835 [oleganza]
117
118 * Make render :partial recognise form builders and use the _form partial.  #10814 [djanowski]
119
120 * Allow users to declare other namespaces when using the atom feed helpers. #10304 [david.calavera]
121
122 * Introduce send_file :x_sendfile => true to send an X-Sendfile response header.  [Jeremy Kemper]
123
124 * Fixed ActionView::Helpers::ActiveRecordHelper::form for when protect_from_forgery is used #10739 [jeremyevans]
125
126 * Provide nicer access to HTTP Headers.  Instead of request.env["HTTP_REFERRER"] you can now use request.headers["Referrer"]. [Koz]
127
128 * UrlWriter respects relative_url_root.  #10748 [Cheah Chu Yeow]
129
130 * The asset_host block takes the controller request as an optional second argument. Example: use a single asset host for SSL requests.  #10549 [Cheah Chu Yeow, Peter B, Tom Taylor]
131
132 * Support render :text => nil.  #6684 [tjennings, PotatoSalad, Cheah Chu Yeow]
133
134 * assert_response failures include the exception message.  #10688 [Seth Rasmussen]
135
136 * All fragment cache keys are now by default prefixed with the "views/" namespace [DHH]
137
138 * Moved the caching stores from ActionController::Caching::Fragments::* to ActiveSupport::Cache::*. If you're explicitly referring to a store, like ActionController::Caching::Fragments::MemoryStore, you need to update that reference with ActiveSupport::Cache::MemoryStore [DHH]
139
140 * Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [DHH]
141
142 * Made fragment caching in views work for rjs and builder as well #6642 [zsombor]
143
144 * Fixed rendering of partials with layout when done from site layout #9209 [antramm]
145
146 * Fix atom_feed_helper to comply with the atom spec.  Closes #10672 [xaviershay]
147
148   * The tags created do not contain a date (http://feedvalidator.org/docs/error/InvalidTAG.html)
149   * IDs are not guaranteed unique
150   * A default self link was not provided, contrary to the documentation
151   * NOTE:  This changes tags for existing atom entries, but at least they validate now.
152
153 * Correct indentation in tests.  Closes #10671 [l.guidi]
154
155 * Fix that auto_link looks for ='s in url paths (Amazon urls have them).  Closes #10640 [bgreenlee]
156
157 * Ensure that test case setup is run even if overridden.  #10382 [Josh Peek]
158
159 * Fix HTML Sanitizer to allow trailing spaces in CSS style attributes.  Closes #10566 [wesley.moxam]
160
161 * Add :default option to time_zone_select.  #10590 [Matt Aimonetti]
162
163
164 *2.0.2* (December 16th, 2007)
165
166 * Added delete_via_redirect and put_via_redirect to integration testing #10497 [philodespotos]
167
168 * Allow headers['Accept'] to be set by hand when calling xml_http_request #10461 [BMorearty]
169
170 * Added OPTIONS to list of default accepted HTTP methods #10449 [holoway]
171
172 * Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [chuyeow]. Example:
173
174     ActionController::Base.asset_host = Proc.new { |source|
175       if source.starts_with?('/images')
176         "http://images.example.com"
177       else
178         "http://assets.example.com"
179       end
180     }
181
182 * Fixed that ActionView#file_exists? would be incorrect if @first_render is set #10569 [dbussink]
183
184 * Added that Array#to_param calls to_param on all it's elements #10473 [brandon]
185
186 * Ensure asset cache directories are automatically created.  #10337 [Josh Peek, Cheah Chu Yeow]
187
188 * render :xml and :json preserve custom content types.  #10388 [jmettraux, Cheah Chu Yeow]
189
190 * Refactor Action View template handlers.  #10437, #10455 [Josh Peek]
191
192 * Fix DoubleRenderError message and leave out mention of returning false from filters.  Closes #10380 [Frederick Cheung]
193
194 * Clean up some cruft around ActionController::Base#head.  Closes #10417 [ssoroka]
195
196
197 *2.0.1* (December 7th, 2007)
198
199 * Fixed send_file/binary_content for testing #8044 [tolsen]
200
201 * When a NonInferrableControllerError is raised, make the proposed fix clearer in the error message. Closes #10199 [danger]
202
203 * Update Prototype to 1.6.0.1.  [sam]
204
205 * Update script.aculo.us to 1.8.0.1.  [madrobby]
206
207 * Add 'disabled' attribute to <OPTION> separators used in time zone and country selects.  Closes #10354 [hasmanyjosh]
208
209 * Added the same record identification guessing rules to fields_for as form_for has [DHH]
210
211 * Fixed that verification violations with no specified action didn't halt the chain (now they do with a 400 Bad Request) [DHH]
212
213 * Raise UnknownHttpMethod exception for unknown HTTP methods. Closes #10303 [Tarmo TÀnav]
214
215 * Update to Prototype -r8232.  [sam]
216
217 * Make sure the optimisation code for routes doesn't get used if :host, :anchor or :port are provided in the hash arguments. [pager, Koz] #10292
218
219 * Added protection from trailing slashes on page caching #10229 [devrieda]
220
221 * Asset timestamps are appended, not prepended. Closes #10276 [mnaberez]
222
223 * Minor inconsistency in description of render example. Closes #10029 [ScottSchram]
224
225 * Add #prepend_view_path and #append_view_path instance methods on ActionController::Base for consistency with the class methods.  [rick]
226
227 * Refactor sanitizer helpers into HTML classes and make it easy to swap them out with custom implementations.  Closes #10129.  [rick]
228
229 * Add deprecation for old subtemplate syntax for ActionMailer templates, use render :partial [rick]
230
231 * Fix TemplateError so it doesn't bomb on exceptions while running tests [rick]
232
233 * Fixed that named routes living under resources shouldn't have double slashes #10198 [isaacfeliu]
234
235 * Make sure that cookie sessions use a secret that is at least 30 chars in length. [Koz]
236
237 * Fixed that partial rendering should look at the type of the first render to determine its own type if no other clues are available (like when using text.plain.erb as the extension in AM) #10130 [java]
238
239 * Fixed that has_many :through associations should render as collections too #9051 [mathie/danger]
240
241 * Added :mouseover short-cut to AssetTagHelper#image_tag for doing easy image swaps #6893 [joost]
242
243 * Fixed handling of non-domain hosts #9479 [purp]
244
245 * Fix syntax error in documentation example for cycle method. Closes #8735 [foca]
246
247 * Document :with option for link_to_remote. Closes #8765 [ryanb]
248
249 * Document :minute_step option for time_select. Closes #8814 [brupm]
250
251 * Explain how to use the :href option for link_to_remote to degrade gracefully in the absence of JavaScript. Closes #8911 [vlad]
252
253 * Disambiguate :size option for text area tag. Closes #8955 [redbeard]
254
255 * Fix broken tag in assert_tag documentation. Closes #9037 [mfazekas]
256
257 * Add documentation for route conditions. Closes #9041 [innu, manfred]
258
259 * Fix typo left over from previous typo fix in url helper. Closes #9414 [Henrik N]
260
261 * Fixed that ActionController::CgiRequest#host_with_port() should handle standard port #10082 [moro]
262
263 * Update Prototype to 1.6.0 and script.aculo.us to 1.8.0.  [sam, madrobby]
264
265 * Expose the cookie jar as a helper method (before the view would just get the raw cookie hash) [DHH]
266
267 * Integration tests: get_ and post_via_redirect take a headers hash.  #9130 [simonjefford]
268
269 * Simplfy #view_paths implementation.  ActionView templates get the exact object, not a dup.  [Rick]
270
271 * Update tests for ActiveSupport's JSON escaping change.  [rick]
272
273 * FormHelper's auto_index should use #to_param instead of #id_before_type_cast.  Closes #9994 [mattly]
274
275 * Doc typo fixes for ActiveRecordHelper. Closes #9973 [mikong]
276
277 * Make example parameters in restful routing docs idiomatic. Closes #9993 [danger]
278
279 * Make documentation comment for mime responders match documentation example.  Closes #9357 [yon]
280
281 * Introduce a new test case class for functional tests.  ActionController::TestCase. [Koz]
282
283 * Fix incorrect path in helper rdoc. Closes #9926 [viktor tron]
284
285 * Partials also set 'object' to the default partial variable.  #8823 [Nick Retallack, Jeremy Kemper]
286
287 * Request profiler.  [Jeremy Kemper]
288     $ cat login_session.rb
289     get_with_redirect '/'
290     say "GET / => #{path}"
291     post_with_redirect '/sessions', :username => 'john', :password => 'doe'
292     say "POST /sessions => #{path}"
293     $ ./script/performance/request -n 10 login_session.rb
294
295 * Disabled checkboxes don't submit a form value.  #9301 [vladr, robinjfisher]
296
297 * Added tests for options to ActiveRecordHelper#form. Closes #7213 [richcollins, mikong, mislav]
298
299 * Changed before_filter halting to happen automatically on render or redirect but no longer on simply returning false [DHH]
300
301 * Ensure that cookies handle array values correctly.  Closes #9937 [queso]
302
303 * Make sure resource routes don't clash with internal helpers like javascript_path, image_path etc.  #9928 [gbuesing]
304
305 * caches_page uses a single after_filter instead of one per action.  #9891 [Pratik Naik]
306
307 * Update Prototype to 1.6.0_rc1 and script.aculo.us to 1.8.0 preview 0.  [sam, madrobby]
308
309 * Dispatcher: fix that to_prepare should only run once in production.  #9889 [Nathaniel Talbott]
310
311 * Memcached sessions: add session data on initialization; don't silently discard exceptions; add unit tests.  #9823 [kamk]
312
313 * error_messages_for also takes :message and :header_message options which defaults to the old "There were problems with the following fields:" and "<count> errors prohibited this <object_name> from being saved".  #8270 [rmm5t, zach-inglis-lt3]
314
315 * Make sure that custom inflections are picked up by map.resources.  #9815 [mislav]
316
317 * Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [DHH]
318
319 * Extracted sanitization methods from TextHelper to SanitizeHelper [DHH]
320
321 * rescue_from accepts :with => lambda { |exception| ... } or a normal block.  #9827 [Pratik Naik]
322
323 * Add :status to redirect_to allowing users to choose their own response code without manually setting headers. #8297 [codahale, chasgrundy]
324
325 * Add link_to :back which uses your referrer with a fallback to a javascript link. #7366 [eventualbuddha, Tarmo TÀnav]
326
327 * error_messages_for and friends also work with local variables.  #9699 [Frederick Cheung]
328
329 * Fix url_for, redirect_to, etc. with :controller => :symbol instead of 'string'.  #8562, #9525 [Justin Lynn, Tarmo TÀnav, shoe]
330
331 * Use #require_library_or_gem to load the memcache library for the MemCache session and fragment cache stores.  Closes #8662. [Rick]
332
333 * Move ActionController::Routing.optimise_named_routes to ActionController::Base.optimise_named_routes.  Now you can set it in the config. [Rick]
334
335   config.action_controller.optimise_named_routes = false
336
337 * ActionController::Routing::DynamicSegment#interpolation_chunk should call #to_s on all values before calling URI.escape.  [Rick]
338
339 * Only accept session ids from cookies, prevents session fixation attacks.  [bradediger]
340
341
342 *2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.12.2 - 1.13.3]
343
344 * Fixed that render template did not honor exempt_from_layout #9698 [pezra]
345
346 * Better error messages if you leave out the :secret option for request forgery protection.  Closes #9670 [rick]
347
348 * Allow ability to disable request forgery protection, disable it in test mode by default.  Closes #9693 [Pratik Naik]
349
350 * Avoid calling is_missing on LoadErrors. Closes #7460. [ntalbott]
351
352 * Move Railties' Dispatcher to ActionController::Dispatcher, introduce before_ and after_dispatch callbacks, and warm up to non-CGI requests.  [Jeremy Kemper]
353
354 * The tag helper may bypass escaping.  [Jeremy Kemper]
355
356 * Cache asset ids.  [Jeremy Kemper]
357
358 * Optimized named routes respect AbstractRequest.relative_url_root.  #9612 [danielmorrison, Jeremy Kemper]
359
360 * Introduce ActionController::Base.rescue_from to declare exception-handling methods. Cleaner style than the case-heavy rescue_action_in_public.  #9449 [Norbert Crombach]
361
362 * Rename some RequestForgeryProtection methods.  The class method is now #protect_from_forgery, and the default parameter is now 'authenticity_token'.  [Rick]
363
364 * Merge csrf_killer plugin into rails.  Adds RequestForgeryProtection model that verifies session-specific _tokens for non-GET requests.  [Rick]
365
366 * Secure #sanitize, #strip_tags, and #strip_links helpers against xss attacks.  Closes #8877. [Rick, Pratik Naik, Jacques Distler]
367
368   This merges and renames the popular white_list helper (along with some css sanitizing from Jacques Distler version of the same plugin).
369   Also applied updated versions of #strip_tags and #strip_links from #8877.
370
371 * Remove use of & logic operator. Closes #8114. [watson]
372
373 * Fixed JavaScriptHelper#escape_javascript to also escape closing tags #8023 [rubyruy]
374
375 * Fixed TextHelper#word_wrap for multiline strings with extra carrier returns #8663 [seth]
376
377 * Fixed that setting the :host option in url_for would automatically turn off :only_path (since :host would otherwise not be shown) #9586 [Bounga]
378
379 * Added FormHelper#label.  #8641, #9850 [jcoglan, jarkko]
380
381 * Added AtomFeedHelper (slightly improved from the atom_feed_helper plugin) [DHH]
382
383 * Prevent errors when generating routes for uncountable resources, (i.e. sheep where plural == singluar).   map.resources :sheep now creates sheep_index_url for the collection and sheep_url for the specific item.  [Koz]
384
385 * Added support for HTTP Only cookies (works in IE6+ and FF 2.0.5+) as an improvement for XSS attacks #8895 [Pratik Naik, Spakman]
386
387 * Don't warn when a path segment precedes a required segment. Closes #9615. [Nicholas Seckar]
388
389 * Fixed CaptureHelper#content_for to work with the optional content parameter instead of just the block #9434 [sandofsky/wildchild].
390
391 * Added Mime::Type.register_alias for dealing with different formats using the same mime type [DHH]. Example:
392
393     class PostsController < ApplicationController
394       before_filter :adjust_format_for_iphone
395
396       def index
397         @posts = Post.find(:all)
398        
399         respond_to do |format|
400           format.html   # => renders index.html.erb and uses "text/html" as the content type
401           format.iphone # => renders index.iphone.erb and uses "text/html" as the content type
402         end
403       end
404
405
406       private
407         def adjust_format_for_iphone
408           if request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/iPhone/]
409             request.format = :iphone
410           end
411         end
412     end
413
414 * Added that render :json will automatically call .to_json unless it's being passed a string [DHH].
415
416 * Autolink behaves well with emails embedded in URLs.  #7313 [Jeremy McAnally, Tarmo TÀnav]
417
418 * Fixed that default layouts did not take the format into account #9564 [Pratik Naik]
419
420 * Fixed optimized route segment escaping.  #9562 [wildchild, Jeremy Kemper]
421
422 * Added block acceptance to JavaScriptHelper#javascript_tag.  #7527 [Bob Silva, Tarmo TÀnav, rmm5t]
423
424 * root_path returns '/' not ''.  #9563 [Pratik Naik]
425
426 * Fixed that setting request.format should also affect respond_to blocks [DHH]
427
428 * Add option to force binary mode on tempfile used for fixture_file_upload.  #6380 [Jonathan Viney]
429
430 * Fixed that resource namespaces wouldn't stick to all nested resources #9399 [pixeltrix]
431
432 * Moved ActionController::Macros::AutoComplete into the auto_complete plugin on the official Rails svn.  #9512 [Pratik Naik]
433
434 * Moved ActionController::Macros::InPlaceEditing into the in_place_editor plugin on the official Rails svn.  #9513 [Pratik Naik]
435
436 * Removed deprecated form of calling xml_http_request/xhr without the first argument being the http verb [DHH]
437
438 * Removed deprecated methods [DHH]:
439
440   - ActionController::Base#keep_flash (use flash.keep instead)
441   - ActionController::Base#expire_matched_fragments (just call expire_fragment with a regular expression)
442   - ActionController::Base.template_root/= methods (use ActionController#Base.view_paths/= instead)
443   - ActionController::Base.cookie (use ActionController#Base.cookies[]= instead)
444
445 * Removed the deprecated behavior of appending ".png" to image_tag/image_path calls without an existing extension [DHH]
446
447 * Removed ActionController::Base.scaffold -- it went through the whole idea of scaffolding (card board walls you remove and tweak one by one). Use the scaffold generator instead (it does resources too now!) [DHH]
448
449 * Optimise named route generation when using positional arguments.  [Koz]
450
451   This change delivers significant performance benefits for the most
452   common usage scenarios for modern rails applications by avoiding the
453   costly trip through url_for.  Initial benchmarks indicate this is
454   between 6 and 20 times as fast.
455
456 * Explicitly require active_record/query_cache before using it.  [Jeremy Kemper]
457
458 * Fix layout overriding response status.  #9476 [lotswholetime]
459
460 * Add field_set_tag for generating field_sets, closes #9477. [djanowski]
461
462 * Allow additional parameters to be passed to named route helpers when using positional arguments.  Closes #8930 [ian.w.white@gmail.com]
463
464 * Make render :partial work with a :collection of Hashes, previously this wasn't possible due to backwards compatibility restrictions.  [Pratik Naik]
465
466 * request.host works with IPv6 addresses.  #9458 [yuya]
467
468 * Fix bug where action caching sets the content type to the ActionCachePath object.  Closes #9282 [mindforge]
469
470 * Find layouts even if they're not in the first view_paths directory.  Closes #9258 [caio]
471
472 * Major improvement to the documentation for the options / select form helpers. Closes #9038 [kampers, jardeon, wesg]
473
474 * Fix number_to_human_size when using different precisions. Closes #7536. [RichardStrand, mpalmer]
475
476 * Added partial layouts (see example in action_view/lib/partials.rb) [DHH]
477
478 * Allow you to set custom :conditions on resource routes.  [Rick]
479
480 * Fixed that file.content_type for uploaded files would include a trailing \r #9053 [bgreenlee]
481
482 * url_for now accepts a series of symbols representing the namespace of the record [Josh Knowles]
483
484 * Make :trailing_slash work with query parameters for url_for. Closes #4004 [nov]
485
486 * Make sure missing template exceptions actually say which template they were looking for.  Closes #8683 [dasil003]
487
488 * Fix errors with around_filters which do not yield, restore 1.1 behaviour with after filters. Closes #8891 [skaes]
489
490   After filters will *no longer* be run if an around_filter fails to yield, users relying on
491   this behaviour are advised to put the code in question after a yield statement in an around filter.
492  
493
494 * Allow you to delete cookies with options. Closes #3685 [Josh Peek, Chris Wanstrath]
495
496 * Allow you to render views with periods in the name.  Closes #8076 [Norbert Crombach]
497
498   render :partial => 'show.html.erb'
499
500 * Improve capture helper documentation.  #8796 [kampers]
501
502 * Prefix nested resource named routes with their action name, e.g. new_group_user_path(@group) instead of group_new_user_path(@group). The old nested action named route is deprecated in Rails 1.2.4.  #8558 [David Chelimsky]
503
504 * Allow sweepers to be created solely for expiring after controller actions, not model changes [DHH]
505
506 * Added assigns method to ActionController::Caching::Sweeper to easily access instance variables on the controller [DHH]
507
508 * Give the legacy X-POST_DATA_FORMAT header greater precedence during params parsing for backward compatibility.  [Jeremy Kemper]
509
510 * Fixed that link_to with an href of # when using :method will not allow for click-through without JavaScript #7037 [Steven Bristol, Josh Peek]
511
512 * Fixed that radio_button_tag should generate unique ids #3353 [Bob Silva, Rebecca, Josh Peek]
513
514 * Fixed that HTTP authentication should work if the header is called REDIRECT_X_HTTP_AUTHORIZATION as well #6754 [mislaw]
515
516 * Don't mistakenly interpret the request uri as the query string.  #8731 [Pratik Naik, Jeremy Kemper]
517
518 * Make ActionView#view_paths an attr_accessor for real this time.  Also, don't perform an unnecessary #compact on the @view_paths array in #initialize.  Closes #8582 [dasil003, julik, rick]
519
520 * Tolerate missing content type on multipart file uploads. Fix for Safari 3.  [Jeremy Kemper]
521
522 * Deprecation: remove pagination. Install the classic_pagination plugin for forward compatibility, or move to the superior will_paginate plugin.  #8157 [Josh Peek]
523
524 * Action caching is limited to GET requests returning 200 OK status.  #3335 [tom@craz8.com, halfbyte, Dan Kubb, Josh Peek]
525
526 * Improve Text Helper test coverage.  #7274 [Rob Sanheim, Josh Peek]
527
528 * Improve helper test coverage.  #7208, #7212, #7215, #7233, #7234, #7235, #7236, #7237, #7238, #7241, #7243, #7244 [Rich Collins, Josh Peek]
529
530 * Improve UrlRewriter tests.  #7207 [Rich Collins]
531
532 * Resources: url_for([parent, child]) generates /parents/1/children/2 for the nested resource. Likewise with the other simply helpful methods like form_for and link_to.  #6432 [mhw, Jonathan Vaught, lotswholetime]
533
534 * Assume html format when rendering partials in RJS. #8076 [Rick]
535
536 * Don't double-escape url_for in views.  #8144 [Rich Collins, Josh Peek]
537
538 * Allow JSON-style values for the :with option of observe_field.  Closes #8557 [kommen]
539
540 * Remove RAILS_ROOT from backtrace paths.  #8540 [Tim Pope]
541
542 * Routing: map.resource :logo routes to LogosController so the controller may be reused for multiple nestings or namespaces.  [Jeremy Kemper]
543
544 * render :partial recognizes Active Record associations as Arrays.  #8538 [Kamal Fariz Mahyuddin]
545
546 * Routing: drop semicolon and comma as route separators.  [Jeremy Kemper]
547
548 * request.remote_ip understands X-Forwarded-For addresses with nonstandard whitespace.  #7386 [moses]
549
550 * Don't prepare response when rendering a component.  #8493 [jsierles]
551
552 * Reduce file stat calls when checking for template changes.  #7736 [alex]
553
554 * Added custom path cache_page/expire_page parameters in addition to the options hashes [DHH]. Example:
555
556     def index
557       caches_page(response.body, "/index.html")
558     end
559
560 * Action Caching speedup.  #8231 [skaes]
561
562 * Wordsmith resources documentation.  #8484 [marclove]
563
564 * Fix syntax error in code example for routing documentation. #8377. [Norbert Crombach]
565
566 * Routing: respond with 405 Method Not Allowed status when the route path matches but the HTTP method does not.  #6953 [Josh Peek, defeated, Dan Kubb, Coda Hale]
567
568 * Add support for assert_select_rjs with :show and :hide. #7780 [dchelimsky]
569
570 * Make assert_select's failure messages clearer about what failed. #7779 [dchelimsky]
571
572 * Introduce a default respond_to block for custom types.  #8174 [Josh Peek]
573
574 * auto_complete_field takes a :method option so you can GET or POST.  #8120 [zapnap]
575
576 * Added option to suppress :size when using :maxlength for FormTagHelper#text_field #3112 [Tim Pope]
577
578 * catch possible WSOD when trying to render a missing partial. Closes #8454 [Catfish]
579
580 * Rewind request body after reading it, if possible.  #8438 [s450r1]
581
582 * Resource namespaces are inherited by their has_many subresources.  #8280 [marclove, ggarside]
583
584 * Fix filtered parameter logging with nil parameter values.  #8422 [choonkeat]
585
586 * Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST.  #7124 [Nik Wakelin, Francois Beausoleil, Wizard]
587
588 * Document caches_action.  #5419 [Jarkko Laine]
589
590 * Update to Prototype 1.5.1.  [Sam Stephenson]
591
592 * Allow routes to be decalred under namespaces [Tobias Luetke]:
593  
594   map.namespace :admin do |admin|
595     admin.root :controller => "products"       
596     admin.feed 'feed.xml', :controller => 'products', :action => 'feed', :format => 'xml'
597   end
598  
599 * Update to script.aculo.us 1.7.1_beta3.  [Thomas Fuchs]
600
601 * observe_form always sends the serialized form.  #5271 [manfred, normelton@gmail.com]
602
603 * Parse url-encoded and multipart requests ourselves instead of delegating to CGI.  [Jeremy Kemper]
604
605 * select :include_blank option can be set to a string instead of true, which just uses an empty string.  #7664 [Wizard]
606
607 * Added url_for usage on render :location, which allows for record identification [DHH]. Example:
608
609     render :xml => person, :status => :created, :location => person
610  
611   ...expands the location to person_url(person).
612
613 * Introduce the request.body stream. Lazy-read to parse parameters rather than always setting RAW_POST_DATA. Reduces the memory footprint of large binary PUT requests.  [Jeremy Kemper]
614
615 * Add some performance enhancements to ActionView.
616
617   * Cache base_paths in @@cached_base_paths
618   * Cache template extensions in @@cached_template_extension
619   * Remove unnecessary rescues
620
621 * Assume that rendered partials go by the HTML format by default
622
623   def my_partial
624     render :update do |page|
625       # in this order
626       # _foo.html.erb
627       # _foo.erb
628       # _foo.rhtml
629       page.replace :foo, :partial => 'foo'
630     end
631   end
632
633 * Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [DHH]. Examples:
634
635     <% form_for(@post) do |f| %>
636       ...
637     <% end %>
638  
639   This will expand to be the same as:
640  
641     <% form_for :post, @post, :url => post_path(@post), :html => { :method => :put, :class => "edit_post", :id => "edit_post_45" } do |f| %>
642       ...
643     <% end %>
644  
645   And for new records:
646  
647     <% form_for(Post.new) do |f| %>
648       ...
649     <% end %>
650  
651   This will expand to be the same as:
652  
653     <% form_for :post, @post, :url => posts_path, :html => { :class => "new_post", :id => "new_post" } do |f| %>
654       ...
655     <% end %>
656
657 * Rationalize route path escaping according to RFC 2396 section 3.3.  #7544, #8307. [Jeremy Kemper, chrisroos, begemot, jugend]
658
659 * Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [DHH]. Examples:
660
661     redirect_to(post)         # => redirect_to(posts_url(post))         => Location: http://example.com/posts/1
662     link_to(post.title, post) # => link_to(post.title, posts_url(post)) => <a href="/posts/1">Hello world</a>
663
664   Any method that calls url_for on its parameters will automatically benefit from this.
665
666 * Removed deprecated parameters_for_method_reference concept (legacy from before named routes) [DHH]
667
668 * Add ActionController::Routing::Helpers, a module to contain common URL helpers such as polymorphic_url. [Nicholas Seckar]
669
670 * Included the HttpAuthentication plugin as part of core (ActionController::HttpAuthentication::Basic) [DHH]
671
672 * Modernize documentation for form helpers. [jeremymcanally]
673
674 * Add brief introduction to REST to the resources documentation. [fearoffish]
675
676 * Fix various documentation typos throughout ActionPack. [Henrik N]
677
678 * Enhance documentation and add examples for url_for. [jeremymcanally]
679
680 * Fix documentation typo in routes. [Norbert Crombach, pam]
681
682 * Sweep flash when filter chain is halted. [Caio Chassot <lists@v2studio.com>]
683
684 * Fixed that content_tag with a block will just return the result instead of concate it if not used in a ERb view #7857, #7432 [michael.niessner]
685
686 * Replace the current block/continuation filter chain handling by an implementation based on a simple loop.  #8226 [Stefan Kaes]
687
688 * Update UrlWriter to accept :anchor parameter. Closes #6771. [octopod]
689
690 * Added RecordTagHelper for using RecordIdentifier conventions on divs and other container elements [DHH]. Example:
691
692     <% div_for(post) do %>     <div id="post_45" class="post">
693       <%= post.body %>           What a wonderful world!
694     <% end %>                  </div>
695
696 * Added page[record] accessor to JavaScriptGenerator that relies on RecordIdentifier to find the right dom id [DHH]. Example:
697
698     format.js do
699       # Calls: new Effect.fade('post_45');
700       render(:update) { |page| page[post].visual_effect(:fade) }
701     end
702
703 * Added RecordIdentifier to enforce view conventions on records for dom ids, classes, and partial paths [DHH]
704
705 * Added map.namespace to deal with the common situation of admin sections and the like [DHH]
706
707     Before:
708    
709       map.resources :products, :path_prefix => "admin", :controller => "admin/products", :collection => { :inventory => :get }, :member => { :duplicate => :post }
710       map.resources :tags, :name_prefix => 'admin_product_', :path_prefix => "admin/products/:product_id", :controller => "admin/product_tags"
711       map.resources :images, :name_prefix => 'admin_product_', :path_prefix => "admin/products/:product_id", :controller => "admin/product_images"
712       map.resources :variants, :name_prefix => 'admin_product_', :path_prefix => "admin/products/:product_id", :controller => "admin/product_variants"
713
714     After:
715    
716       map.namespace(:admin) do |admin|
717         admin.resources :products,
718           :collection => { :inventory => :get },
719           :member     => { :duplicate => :post },
720           :has_many   => [ :tags, :images, :variants ]
721       end
722
723 * Added :name_prefix as standard for nested resources [DHH]. WARNING: May be backwards incompatible with your app
724
725     Before:
726
727       map.resources :emails do |emails|
728         emails.resources :comments,    :name_prefix => "email_"
729         emails.resources :attachments, :name_prefix => "email_"
730       end
731      
732     After:
733
734       map.resources :emails do |emails|
735         emails.resources :comments
736         emails.resources :attachments
737       end
738    
739     This does mean that if you intended to have comments_url go to /emails/5/comments, then you'll have to set :name_prefix to nil explicitly.
740
741 * Added :has_many and :has_one for declaring plural and singular resources beneath the current [DHH]
742
743     Before:
744      
745       map.resources :notes do |notes|
746         notes.resources :comments
747         notes.resources :attachments
748         notes.resource :author
749       end
750    
751     After:
752    
753       map.resources :notes, :has_many => [ :comments, :attachments ], :has_one => :author
754
755 * Added that render :xml will try to call to_xml if it can [DHH]. Makes these work:
756
757     render :xml => post
758     render :xml => comments
759
760 * Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [DHH]
761
762     render :xml => post.to_xml, :status => :created, :location => post_url(post)
763
764 * Ensure that render_text only adds string content to the body of the response [DHH]
765
766 * Return the string representation from an Xml Builder when rendering a partial. Closes #5044 [Tim Pope]
767
768 * Fixed that parameters from XML should also be presented in a hash with indifferent access [DHH]
769
770 * Tweak template format rules so that the ACCEPT header is only used if it's text/javascript.  This is so ajax actions without a :format param get recognized as Mime::JS. [Rick]
771
772 * The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick]
773
774 * Allow layouts with extension of .html.erb.  Closes #8032 [Josh Knowles]
775
776 * Change default respond_to templates for xml and rjs formats. [Rick]
777
778   * Default xml template goes from #{action_name}.rxml => #{action_name}.xml.builder.
779   * Default rjs template goes from #{action_name}.rjs => #{action_name}.js.rjs.
780  
781   You can still specify your old templates:
782  
783     respond_to do |format|
784       format.xml do
785         render :action => "#{action_name}.rxml"
786       end
787     end
788
789 * Fix WSOD due to modification of a formatted template extension so that requests to templates like 'foo.html.erb' fail on the second hit.  [Rick]
790
791 * Fix WSOD when template compilation fails [Rick]
792
793 * Change ActionView template defaults.  Look for templates using the request format first, such as "show.html.erb" or "show.xml.builder", before looking for the old defaults like "show.erb" or "show.builder" [Rick]
794
795 * Highlight helper highlights one or many terms in a single pass.  [Jeremy Kemper]
796
797 * Dropped the use of ; as a separator of non-crud actions on resources and went back to the vanilla slash. It was a neat idea, but lots of the non-crud actions turned out not to be RPC (as the ; was primarily intended to discourage), but legitimate sub-resources, like /parties/recent, which didn't deserve the uglification of /parties;recent. Further more, the semicolon caused issues with caching and HTTP authentication in Safari. Just Not Worth It [DHH]
798
799 * Added that FormTagHelper#submit_tag will return to its original state if the submit fails and you're using :disable_with [DHH]
800
801 * Cleaned up, corrected, and mildly expanded ActionPack documentation.  Closes #7190 [jeremymcanally]
802
803 * Small collection of ActionController documentation cleanups.  Closes #7319 [jeremymcanally]
804
805 * Make sure the route expiry hash is constructed by comparing the to_param-ized values of each hash. [Jamis Buck]
806
807 * Allow configuration of the default action cache path for #caches_action calls.  [Rick Olson]
808
809   class ListsController < ApplicationController
810     caches_action :index, :cache_path => Proc.new { |controller|
811       controller.params[:user_id] ?
812         controller.send(:user_lists_url, c.params[:user_id]) :
813         controller.send(:lists_url) }
814   end
815
816 * Performance: patch cgi/session/pstore to require digest/md5 once rather than per #initialize.  #7583 [Stefan Kaes]
817
818 * Cookie session store: ensure that new sessions doesn't reuse data from a deleted session in the same request.  [Jeremy Kemper]
819
820 * Deprecation: verification with :redirect_to => :named_route shouldn't be deprecated.  #7525 [Justin French]
821
822 * Cookie session store: raise ArgumentError when :session_key is blank.  [Jeremy Kemper]
823
824 * Deprecation: remove deprecated request, redirect, and dependency methods. Remove deprecated instance variables. Remove deprecated url_for(:symbol, *args) and redirect_to(:symbol, *args) in favor of named routes. Remove uses_component_template_root for toplevel components directory. Privatize deprecated render_partial and render_partial_collection view methods. Remove deprecated link_to_image, link_image_to, update_element_function, start_form_tag, and end_form_tag helper methods. Remove deprecated human_size helper alias.  [Jeremy Kemper]
825
826 * Consistent public/protected/private visibility for chained methods.  #7813 [Dan Manges]
827
828 * Prefer MIME constants to strings.  #7707 [Dan Kubb]
829
830 * Allow array and hash query parameters. Array route parameters are converted/to/a/path as before.  #6765, #7047, #7462 [bgipsy, Jeremy McAnally, Dan Kubb, brendan]
831
832 # Add a #dbman attr_reader for CGI::Session and make CGI::Session::CookieStore#generate_digest public so it's easy to generate digests
833 using the cookie store's secret. [Rick]
834
835 * Added Request#url that returns the complete URL used for the request [DHH]
836
837 * Extract dynamic scaffolding into a plugin.  #7700 [Josh Peek]
838
839 * Added user/password options for url_for to add http authentication in a URL [DHH]
840
841 * Fixed that FormTagHelper#text_area_tag should disregard :size option if it's not a string [Brendon Davidson]
842
843 * Set the original button value in an attribute of the button when using the :disable_with key with submit_tag, so that the original can be restored later. [Jamis Buck]
844
845 * session_enabled? works with session :off.  #6680 [Catfish]
846
847 * Added :port and :host handling to UrlRewriter (which unified url_for usage, regardless of whether it's called in view or controller) #7616 [alancfrancis]
848
849 * Allow send_file/send_data to use a registered mime type as the :type parameter #7620 [jonathan]
850
851 * Allow routing requirements on map.resource(s) #7633 [quixoten]. Example:
852
853   map.resources :network_interfaces, :requirements => { :id => /^\d+\.\d+\.\d+\.\d+$/ }
854
855 * Cookie session store: empty and unchanged sessions don't write a cookie.  [Jeremy Kemper]
856
857 * Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [DHH]
858
859 * Integration tests: introduce methods for other HTTP methods.  #6353 [caboose]
860
861 * Routing: better support for escaped values in route segments.  #7544 [Chris
862 Roos]
863
864 * Introduce a cookie-based session store as the Rails default. Sessions typically contain at most a user_id and flash message; both fit within the 4K cookie size limit. A secure message digest is included with the cookie to ensure data integrity (a user cannot alter his user_id without knowing the secret key included in the digest). If you have more than 4K of session data or don't want your data to be visible to the user, pick another session store.  Cookie-based sessions are dramatically faster than the alternatives.   [Jeremy Kemper]
865
866   Example config/environment.rb:
867     # Use an application-wide secret key and the default SHA1 message digest.
868     config.action_controller.session = { :secret => "can't touch this" }
869
870     # Store a secret key per user and employ a stronger message digest.
871     config.action_controller.session = {
872       :digest => 'SHA512',
873       :secret => Proc.new { User.current.secret_key }
874     }
875
876 * Added .erb and .builder as preferred aliases to the now deprecated .rhtml and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though.
877
878 * Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]. Examples:
879
880     stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is false =>
881       <link href="/stylesheets/style1.css"  media="screen" rel="Stylesheet" type="text/css" />
882       <link href="/stylesheets/styleB.css"  media="screen" rel="Stylesheet" type="text/css" />
883       <link href="/stylesheets/styleX2.css" media="screen" rel="Stylesheet" type="text/css" />
884  
885     stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is true =>
886       <link href="/stylesheets/all.css"  media="screen" rel="Stylesheet" type="text/css" />
887
888   ...when caching is on, all.css is the concatenation of style1.css, styleB.css, and styleX2.css.
889   Same deal for JavaScripts.
890
891 * Work around the two connection per host browser limit: use asset%d.myapp.com to distribute asset requests among asset[0123].myapp.com. Use a DNS wildcard or CNAMEs to map these hosts to your asset server. See http://www.die.net/musings/page_load_time/ for background.  [Jeremy Kemper]
892
893 * Added default mime type for CSS (Mime::CSS) [DHH]
894
895 * Added that rendering will automatically insert the etag header on 200 OK responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH]
896
897 * Added X-Runtime to all responses with the request run time [DHH]
898
899 * Add Mime::Type convenience methods to check the current mime type. [Rick]
900
901   request.format.html? # => true if Mime::HTML
902   request.format.jpg?  # => true if Mime::JPG
903
904   # ActionController sample usage:
905   # the session will be disabled for non html/ajax requests
906   session :off, :if => Proc.new { |req| !(req.format.html? || req.format.js?) }
907
908 * Performance: patch cgi/session to require digest/md5 once rather than per #create_new_id.  [Stefan Kaes]
909
910 * Add a :url_based_filename => true option to ActionController::Streaming::send_file, which allows URL-based filenames.  [Thomas Fuchs]
911
912 * Fix that FormTagHelper#submit_tag using :disable_with should trigger the onsubmit handler of its form if available [DHH]
913
914 * Fix #render_file so that TemplateError is called with the correct params and you don't get the WSOD.  [Rick]
915
916 * Fix issue with deprecation messing up #template_root= usage.  Add #prepend_view_path and #append_view_path to allow modification of a copy of the
917 superclass' view_paths.  [Rick]
918
919 * Allow Controllers to have multiple view_paths instead of a single template_root.  Closes #2754 [John Long]
920
921 * Add much-needed html-scanner tests.  Fixed CDATA parsing bug. [Rick]
922
923 * improve error message for Routing for named routes.  Closes #7346 [Rob Sanheim]
924
925 * Added enhanced docs to routing assertions.  Closes #7359 [Rob Sanheim]
926
927 * fix form_for example in ActionController::Resources documentation.  Closes #7362 [gnarg]
928
929 * Make sure that the string returned by TextHelper#truncate is actually a string, not a char proxy -- that should only be used internally while working on a multibyte-safe way of truncating [DHH]
930
931 * Added FormBuilder#submit as a delegate for FormTagHelper#submit_tag [DHH]
932
933 * Allow Routes to generate all urls for a set of options by specifying :generate_all => true. Allows caching to properly set or expire all paths for a resource. References #1739. [Nicholas Seckar]
934
935 * Change the query parser to map empty GET params to "" rather than nil. Closes #5694. [Nicholas Seckar]
936
937 * date_select and datetime_select take a :default option.  #7052 [nik.wakelin]
938     date_select "post", "written_on", :default => 3.days.from_now
939     date_select "credit_card", "bill_due", :default => { :day => 20 }
940
941 * select :multiple => true suffixes the attribute name with [] unless already suffixed.  #6977 [nik.kakelin, ben, julik]
942
943 * Improve routes documentation.  #7095 [zackchandler]
944
945 * mail_to :encode => 'hex' also encodes the mailto: part of the href attribute as well as the linked email when no name is given.  #2061 [Jarkko Laine, pfc.pille@gmx.net]
946
947 * Resource member routes require :id, eliminating the ambiguous overlap with collection routes.  #7229 [dkubb]
948
949 * Remove deprecated assertions.  [Jeremy Kemper]
950
951 * Change session restoration to allow namespaced models to be autoloaded. Closes #6348. [Nicholas Seckar]
952
953 * Fix doubly appearing parameters due to string and symbol mixups. Closes #2551. [aeden]
954
955 * Fix overly greedy rescues when loading helpers. Fixes #6268. [Nicholas Seckar]
956
957 * Fixed NumberHelper#number_with_delimiter to use "." always for splitting the original number, not the delimiter parameter #7389 [ceefour]
958
959 * Autolinking recognizes trailing and embedded . , : ;  #7354 [Jarkko Laine]
960
961 * Make TextHelper::auto_link recognize URLs with colons in path correctly, fixes #7268.  [imajes]
962
963 * Update to script.aculo.us 1.7.0.  [Thomas Fuchs]
964
965 * Modernize cookie testing code, and increase coverage (Heckle++) #7101 [Kevin Clark]
966
967 * Improve Test Coverage for ActionController::Routing::Route#matches_controller_and_action? (Heckle++) #7115 [Kevin Clark]
968
969 * Heckling ActionController::Resources::Resource revealed that set_prefixes didn't break when :name_prefix was munged. #7081 [Kevin Clark]
970
971 * Fix #distance_of_time_in_words to report accurately against the Duration class.  #7114 [eventualbuddha]
972
973 * Refactor #form_tag to allow easy extending.  [Rick]
974
975 * Update to Prototype 1.5.0. [Sam Stephenson]
976
977 * RecordInvalid, RecordNotSaved => 422 Unprocessable Entity, StaleObjectError => 409 Conflict.  #7097 [dkubb]
978
979 * Allow fields_for to be nested inside form_for, so that the name and id get properly constructed [Jamis Buck]
980
981 * Allow inGroupsOf and eachSlice to be called through rjs. #7046 [Cody Fauser]
982
983 * Allow exempt_from_layout :rhtml.  #6742, #7026 [Dan Manges, Squeegy]
984
985 * Recognize the .txt extension as Mime::TEXT [Rick]
986
987 * Fix parsing of array[] CGI parameters so extra empty values aren't included.  #6252 [Nicholas Seckar, aiwilliams, brentrowland]
988
989 * link_to_unless_current works with full URLs as well as paths.  #6891 [Jarkko Laine, manfred, idrifter]
990
991 * Lookup the mime type for #auto_discovery_link_tag in the Mime::Type class.  Closes #6941 [Josh Peek]
992
993 * Fix bug where nested resources ignore a parent singleton parent's path prefix.  Closes #6940 [Dan Kubb]
994
995 * Fix no method error with error_messages_on.  Closes #6935 [nik.wakelin Koz]
996
997 * Slight doc tweak to the ActionView::Helpers::PrototypeHelper#replace docs.  Closes #6922 [Steven Bristol]
998
999 * Slight doc tweak to #prepend_filter.  Closes #6493 [Jeremy Voorhis]
1000
1001 * Add more extensive documentation to the AssetTagHelper.  Closes #6452 [Bob Silva]
1002
1003 * Clean up multiple calls to #stringify_keys in TagHelper, add better documentation and testing for TagHelper.  Closes #6394 [Bob Silva]
1004
1005 * [DOCS] fix reference to ActionController::Macros::AutoComplete for #text_field_with_auto_complete. Closes #2578 [Jan Prill]
1006
1007 * Make sure html_document is reset between integration test requests. [ctm]
1008
1009 * Set session to an empty hash if :new_session => false and no session cookie or param is present. CGI::Session was raising an unrescued ArgumentError.  [Josh Susser]
1010
1011 * Routing uses URI escaping for path components and CGI escaping for query parameters.  [darix, Jeremy Kemper]
1012
1013 * Fix assert_redirected_to bug where redirecting from a nested to to a top-level controller incorrectly added the current controller's nesting.  Closes #6128.  [Rick Olson]
1014
1015 * Singleton resources: POST /singleton => create, GET /singleton/new => new.  [Jeremy Kemper]
1016
1017 * Use 400 Bad Request status for unrescued ActiveRecord::RecordInvalid exceptions.  [Jeremy Kemper]
1018
1019 * Silence log_error deprecation warnings from inspecting deprecated instance variables.  [Nate Wiger]
1020
1021 * Only cache GET requests with a 200 OK response.  #6514, #6743 [RSL, anamba]
1022
1023 * Add a 'referer' attribute to TestRequest. [Jamis Buck]
1024
1025 * Ensure render :json => ... skips the layout.  Closes #6808 [Josh Peek]
1026
1027 * Fix HTML::Node to output double quotes instead of single quotes.  Closes #6845 [mitreandy]
1028
1029 * Correctly report which filter halted the chain.  #6699 [Martin Emde]
1030
1031 * Fix a bug in Routing where a parameter taken from the path of the current request could not be used as a query parameter for the next. Closes #6752. [Nicholas Seckar]
1032
1033 * Unrescued ActiveRecord::RecordNotFound responds with 404 instead of 500.  [Jeremy Kemper]
1034
1035 * Improved auto_link to match more valid urls correctly [Tobias Luetke]
1036
1037 * Add singleton resources. [Rick Olson]
1038
1039   map.resource :account
1040  
1041   GET /account
1042   GET /account;edit
1043   UPDATE /account
1044   DELETE /account
1045
1046 * respond_to recognizes JSON. render :json => @person.to_json automatically sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument.  #4185 [Scott Raymond, eventualbuddha]
1047     # application/json response with body 'Element.show({:name: "David"})'
1048     respond_to do |format|
1049       format.json { render :json => { :name => "David" }.to_json, :callback => 'Element.show' }
1050     end
1051
1052 * Makes :discard_year work without breaking multi-attribute parsing in AR.  #1260, #3800 [sean@ardismg.com, jmartin@desertflood.com, stephen@touset.org, Bob Silva]
1053
1054 * Adds html id attribute to date helper elements.  #1050, #1382 [mortonda@dgrmm.net, David North, Bob Silva]
1055
1056 * Add :index and @auto_index capability to model driven date/time selects.  #847, #2655 [moriq, Doug Fales, Bob Silva]
1057
1058 * Add :order to datetime_select, select_datetime, and select_date.  #1427 [Timothee Peignier, patrick@lenz.sh, Bob Silva]
1059
1060 * Added time_select to work with time values in models. Update scaffolding.  #2489, #2833 [Justin Palmer, Andre Caum, Bob Silva]
1061
1062 * Added :include_seconds to select_datetime, datetime_select and time_select.  #2998 [csn, Bob Silva]
1063
1064 * All date/datetime selects can now accept an array of month names with :use_month_names. Allows for localization.  #363 [tomasj, Bob Silva]
1065
1066 * Adds :time_separator to select_time and :date_separator to select_datetime. Preserves BC.  #3811 [Bob Silva]
1067
1068 * Added map.root as an alias for map.connect '' [DHH]
1069
1070 * Added Request#format to return the format used for the request as a mime type. If no format is specified, the first Request#accepts type is used. This means you can stop using respond_to for anything else than responses [DHH]. Examples:
1071
1072     GET /posts/5.xml   | request.format => Mime::XML
1073     GET /posts/5.xhtml | request.format => Mime::HTML
1074     GET /posts/5       | request.format => request.accepts.first (usually Mime::HTML for browsers)
1075
1076 * Added the option for extension aliases to mime type registration [DHH]. Example (already in the default routes):
1077
1078     Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml )
1079  
1080   ...will respond on both .html and .xhtml.
1081
1082 * @response.redirect_url works with 201 Created responses: just return headers['Location'] rather than checking the response status.  [Jeremy Kemper]
1083
1084 * Added CSV to Mime::SET so that respond_to csv will work [Cody Fauser]
1085
1086 * Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [DHH]
1087
1088 * Added GET-masquarading for HEAD, so request.method will return :get even for HEADs. This will help anyone relying on case request.method to automatically work with HEAD and map.resources will also allow HEADs to all GET actions. Rails automatically throws away the response content in a reply to HEAD, so you don't even need to worry about that. If you, for whatever reason, still need to distinguish between GET and HEAD in some edge case, you can use Request#head? and even Request.headers["REQUEST_METHOD"] for get the "real" answer. Closes #6694 [DHH]
1089
1090 * Update Routing to complain when :controller is not specified by a route. Closes #6669. [Nicholas Seckar]
1091
1092 * Ensure render_to_string cleans up after itself when an exception is raised.  #6658 [Rob Sanheim]
1093
1094 * Extract template_changed_since? from compile_template? so plugins may override its behavior for non-file-based templates.  #6651 [Jeff Barczewski]
1095
1096 * Update to Prototype and script.aculo.us [5579]. [Thomas Fuchs]
1097
1098 * simple_format helper doesn't choke on nil.  #6644 [jerry426]
1099
1100 * Update to Prototype 1.5.0_rc2 [5550] which makes it work in Opera again [Thomas Fuchs]
1101
1102 * Reuse named route helper module between Routing reloads.