actionpack 2.2.3 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- data/CHANGELOG +433 -375
- data/MIT-LICENSE +1 -1
- data/README +21 -75
- data/Rakefile +1 -1
- data/lib/action_controller.rb +80 -43
- data/lib/action_controller/assertions/model_assertions.rb +1 -0
- data/lib/action_controller/assertions/response_assertions.rb +43 -16
- data/lib/action_controller/assertions/routing_assertions.rb +1 -1
- data/lib/action_controller/assertions/selector_assertions.rb +17 -12
- data/lib/action_controller/assertions/tag_assertions.rb +1 -4
- data/lib/action_controller/base.rb +153 -82
- data/lib/action_controller/benchmarking.rb +9 -9
- data/lib/action_controller/caching.rb +9 -11
- data/lib/action_controller/caching/actions.rb +11 -18
- data/lib/action_controller/caching/fragments.rb +28 -20
- data/lib/action_controller/caching/pages.rb +13 -15
- data/lib/action_controller/caching/sweeping.rb +2 -2
- data/lib/action_controller/cgi_ext.rb +0 -1
- data/lib/action_controller/cgi_ext/cookie.rb +2 -0
- data/lib/action_controller/cgi_process.rb +54 -162
- data/lib/action_controller/cookies.rb +13 -25
- data/lib/action_controller/dispatcher.rb +43 -122
- data/lib/action_controller/failsafe.rb +52 -0
- data/lib/action_controller/flash.rb +38 -47
- data/lib/action_controller/helpers.rb +13 -9
- data/lib/action_controller/http_authentication.rb +203 -23
- data/lib/action_controller/integration.rb +126 -70
- data/lib/action_controller/layout.rb +36 -39
- data/lib/action_controller/middleware_stack.rb +119 -0
- data/lib/action_controller/middlewares.rb +13 -0
- data/lib/action_controller/mime_responds.rb +19 -4
- data/lib/action_controller/mime_type.rb +8 -0
- data/lib/action_controller/params_parser.rb +71 -0
- data/lib/action_controller/performance_test.rb +0 -1
- data/lib/action_controller/polymorphic_routes.rb +36 -30
- data/lib/action_controller/reloader.rb +14 -0
- data/lib/action_controller/request.rb +107 -499
- data/lib/action_controller/request_forgery_protection.rb +7 -39
- data/lib/action_controller/rescue.rb +55 -35
- data/lib/action_controller/resources.rb +34 -31
- data/lib/action_controller/response.rb +99 -57
- data/lib/action_controller/rewindable_input.rb +28 -0
- data/lib/action_controller/routing.rb +7 -7
- data/lib/action_controller/routing/builder.rb +4 -1
- data/lib/action_controller/routing/optimisations.rb +1 -1
- data/lib/action_controller/routing/recognition_optimisation.rb +1 -2
- data/lib/action_controller/routing/route.rb +15 -5
- data/lib/action_controller/routing/route_set.rb +82 -35
- data/lib/action_controller/routing/segments.rb +35 -0
- data/lib/action_controller/session/abstract_store.rb +181 -0
- data/lib/action_controller/session/cookie_store.rb +197 -175
- data/lib/action_controller/session/mem_cache_store.rb +36 -83
- data/lib/action_controller/session_management.rb +26 -134
- data/lib/action_controller/streaming.rb +24 -7
- data/lib/action_controller/templates/rescues/diagnostics.erb +2 -2
- data/lib/action_controller/templates/rescues/template_error.erb +2 -2
- data/lib/action_controller/test_case.rb +87 -30
- data/lib/action_controller/test_process.rb +145 -104
- data/lib/action_controller/uploaded_file.rb +44 -0
- data/lib/action_controller/url_rewriter.rb +3 -6
- data/lib/action_controller/vendor/html-scanner.rb +16 -0
- data/lib/action_controller/vendor/html-scanner/html/selector.rb +1 -1
- data/lib/action_controller/vendor/rack-1.0/rack.rb +89 -0
- data/lib/action_controller/vendor/rack-1.0/rack/adapter/camping.rb +22 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/handler.rb +37 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/abstract/request.rb +37 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/basic.rb +58 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/md5.rb +124 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/nonce.rb +51 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/params.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/digest/request.rb +40 -0
- data/lib/action_controller/vendor/rack-1.0/rack/auth/openid.rb +480 -0
- data/lib/action_controller/vendor/rack-1.0/rack/builder.rb +63 -0
- data/lib/action_controller/vendor/rack-1.0/rack/cascade.rb +36 -0
- data/lib/action_controller/vendor/rack-1.0/rack/chunked.rb +49 -0
- data/lib/action_controller/vendor/rack-1.0/rack/commonlogger.rb +61 -0
- data/lib/action_controller/vendor/rack-1.0/rack/conditionalget.rb +45 -0
- data/lib/action_controller/vendor/rack-1.0/rack/content_length.rb +29 -0
- data/lib/action_controller/vendor/rack-1.0/rack/content_type.rb +23 -0
- data/lib/action_controller/vendor/rack-1.0/rack/deflater.rb +85 -0
- data/lib/action_controller/vendor/rack-1.0/rack/directory.rb +153 -0
- data/lib/action_controller/vendor/rack-1.0/rack/file.rb +88 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler.rb +48 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/cgi.rb +61 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/evented_mongrel.rb +8 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/fastcgi.rb +89 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/lsws.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/mongrel.rb +84 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/scgi.rb +59 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/swiftiplied_mongrel.rb +8 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/thin.rb +18 -0
- data/lib/action_controller/vendor/rack-1.0/rack/handler/webrick.rb +67 -0
- data/lib/action_controller/vendor/rack-1.0/rack/head.rb +19 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lint.rb +462 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lobster.rb +65 -0
- data/lib/action_controller/vendor/rack-1.0/rack/lock.rb +16 -0
- data/lib/action_controller/vendor/rack-1.0/rack/methodoverride.rb +27 -0
- data/lib/action_controller/vendor/rack-1.0/rack/mime.rb +204 -0
- data/lib/action_controller/vendor/rack-1.0/rack/mock.rb +160 -0
- data/lib/action_controller/vendor/rack-1.0/rack/recursive.rb +57 -0
- data/lib/action_controller/vendor/rack-1.0/rack/reloader.rb +64 -0
- data/lib/action_controller/vendor/rack-1.0/rack/request.rb +241 -0
- data/lib/action_controller/vendor/rack-1.0/rack/response.rb +179 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/abstract/id.rb +142 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/cookie.rb +91 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/memcache.rb +109 -0
- data/lib/action_controller/vendor/rack-1.0/rack/session/pool.rb +100 -0
- data/lib/action_controller/vendor/rack-1.0/rack/showexceptions.rb +349 -0
- data/lib/action_controller/vendor/rack-1.0/rack/showstatus.rb +106 -0
- data/lib/action_controller/vendor/rack-1.0/rack/static.rb +38 -0
- data/lib/action_controller/vendor/rack-1.0/rack/urlmap.rb +55 -0
- data/lib/action_controller/vendor/rack-1.0/rack/utils.rb +392 -0
- data/lib/action_controller/verification.rb +1 -1
- data/lib/action_pack.rb +1 -1
- data/lib/action_pack/version.rb +2 -2
- data/lib/action_view.rb +22 -17
- data/lib/action_view/base.rb +53 -79
- data/lib/action_view/erb/util.rb +38 -0
- data/lib/action_view/helpers.rb +24 -5
- data/lib/action_view/helpers/active_record_helper.rb +2 -2
- data/lib/action_view/helpers/asset_tag_helper.rb +81 -50
- data/lib/action_view/helpers/atom_feed_helper.rb +1 -1
- data/lib/action_view/helpers/benchmark_helper.rb +26 -5
- data/lib/action_view/helpers/date_helper.rb +82 -7
- data/lib/action_view/helpers/form_helper.rb +295 -64
- data/lib/action_view/helpers/form_options_helper.rb +160 -18
- data/lib/action_view/helpers/form_tag_helper.rb +2 -2
- data/lib/action_view/helpers/number_helper.rb +31 -18
- data/lib/action_view/helpers/prototype_helper.rb +2 -12
- data/lib/action_view/helpers/sanitize_helper.rb +0 -10
- data/lib/action_view/helpers/scriptaculous_helper.rb +1 -0
- data/lib/action_view/helpers/tag_helper.rb +3 -4
- data/lib/action_view/helpers/text_helper.rb +99 -122
- data/lib/action_view/helpers/translation_helper.rb +19 -1
- data/lib/action_view/helpers/url_helper.rb +25 -2
- data/lib/action_view/inline_template.rb +1 -1
- data/lib/action_view/locale/en.yml +19 -1
- data/lib/action_view/partials.rb +46 -9
- data/lib/action_view/paths.rb +28 -84
- data/lib/action_view/reloadable_template.rb +117 -0
- data/lib/action_view/renderable.rb +28 -35
- data/lib/action_view/renderable_partial.rb +3 -4
- data/lib/action_view/template.rb +172 -31
- data/lib/action_view/template_error.rb +8 -9
- data/lib/action_view/template_handler.rb +1 -1
- data/lib/action_view/template_handlers.rb +9 -6
- data/lib/action_view/template_handlers/erb.rb +2 -39
- data/lib/action_view/template_handlers/rjs.rb +1 -0
- data/lib/action_view/test_case.rb +27 -1
- data/test/abstract_unit.rb +23 -17
- data/test/active_record_unit.rb +5 -4
- data/test/activerecord/active_record_store_test.rb +139 -106
- data/test/activerecord/render_partial_with_record_identification_test.rb +5 -21
- data/test/controller/action_pack_assertions_test.rb +25 -23
- data/test/controller/addresses_render_test.rb +3 -6
- data/test/controller/assert_select_test.rb +83 -70
- data/test/controller/base_test.rb +11 -13
- data/test/controller/benchmark_test.rb +3 -3
- data/test/controller/caching_test.rb +34 -24
- data/test/controller/capture_test.rb +3 -6
- data/test/controller/content_type_test.rb +3 -6
- data/test/controller/cookie_test.rb +31 -66
- data/test/controller/deprecation/deprecated_base_methods_test.rb +9 -11
- data/test/controller/dispatcher_test.rb +23 -28
- data/test/controller/fake_models.rb +8 -0
- data/test/controller/filters_test.rb +6 -2
- data/test/controller/flash_test.rb +2 -6
- data/test/controller/helper_test.rb +15 -1
- data/test/controller/html-scanner/document_test.rb +1 -1
- data/test/controller/html-scanner/sanitizer_test.rb +1 -1
- data/test/controller/http_basic_authentication_test.rb +88 -0
- data/test/controller/http_digest_authentication_test.rb +178 -0
- data/test/controller/integration_test.rb +56 -52
- data/test/controller/layout_test.rb +46 -44
- data/test/controller/middleware_stack_test.rb +90 -0
- data/test/controller/mime_responds_test.rb +7 -11
- data/test/controller/mime_type_test.rb +9 -0
- data/test/controller/polymorphic_routes_test.rb +235 -151
- data/test/controller/rack_test.rb +52 -81
- data/test/controller/redirect_test.rb +6 -14
- data/test/controller/render_test.rb +273 -60
- data/test/controller/request/json_params_parsing_test.rb +45 -0
- data/test/controller/request/multipart_params_parsing_test.rb +223 -0
- data/test/controller/request/query_string_parsing_test.rb +120 -0
- data/test/controller/request/url_encoded_params_parsing_test.rb +184 -0
- data/test/controller/request/xml_params_parsing_test.rb +88 -0
- data/test/controller/request_forgery_protection_test.rb +17 -98
- data/test/controller/request_test.rb +45 -530
- data/test/controller/rescue_test.rb +45 -22
- data/test/controller/resources_test.rb +112 -37
- data/test/controller/routing_test.rb +1442 -1384
- data/test/controller/selector_test.rb +3 -3
- data/test/controller/send_file_test.rb +30 -3
- data/test/controller/session/cookie_store_test.rb +169 -240
- data/test/controller/session/mem_cache_store_test.rb +94 -148
- data/test/controller/session/test_session_test.rb +58 -0
- data/test/controller/test_test.rb +32 -13
- data/test/controller/url_rewriter_test.rb +54 -4
- data/test/controller/verification_test.rb +1 -1
- data/test/controller/view_paths_test.rb +15 -15
- data/test/controller/webservice_test.rb +178 -147
- data/test/fixtures/alternate_helpers/foo_helper.rb +3 -0
- data/test/fixtures/layout_tests/alt/layouts/alt.rhtml +0 -0
- data/test/fixtures/layouts/default_html.html.erb +1 -0
- data/test/fixtures/layouts/xhr.html.erb +2 -0
- data/test/fixtures/multipart/empty +10 -0
- data/test/fixtures/multipart/hello.txt +1 -0
- data/test/fixtures/multipart/none +9 -0
- data/test/fixtures/public/500.da.html +1 -0
- data/test/fixtures/quiz/questions/_question.html.erb +1 -0
- data/test/fixtures/replies.yml +1 -1
- data/test/fixtures/test/_one.html.erb +1 -0
- data/test/fixtures/test/_two.html.erb +1 -0
- data/test/fixtures/test/dont_pick_me +1 -0
- data/test/fixtures/test/hello.builder +1 -1
- data/test/fixtures/test/hello_world.da.html.erb +1 -0
- data/test/fixtures/test/hello_world.erb~ +1 -0
- data/test/fixtures/test/hello_world.pt-BR.html.erb +1 -0
- data/test/fixtures/test/malformed/malformed.en.html.erb~ +1 -0
- data/test/fixtures/test/malformed/malformed.erb~ +1 -0
- data/test/fixtures/test/malformed/malformed.html.erb~ +1 -0
- data/test/fixtures/test/render_explicit_html_template.js.rjs +1 -0
- data/test/fixtures/test/render_implicit_html_template.js.rjs +1 -0
- data/test/fixtures/test/render_implicit_html_template_from_xhr_request.da.html.erb +1 -0
- data/test/fixtures/test/render_implicit_html_template_from_xhr_request.html.erb +1 -0
- data/test/fixtures/test/render_implicit_js_template_without_layout.js.erb +1 -0
- data/test/fixtures/test/utf8.html.erb +2 -0
- data/test/template/active_record_helper_i18n_test.rb +31 -33
- data/test/template/active_record_helper_test.rb +34 -0
- data/test/template/asset_tag_helper_test.rb +52 -14
- data/test/template/atom_feed_helper_test.rb +3 -5
- data/test/template/benchmark_helper_test.rb +50 -24
- data/test/template/compiled_templates_test.rb +177 -33
- data/test/template/date_helper_i18n_test.rb +88 -81
- data/test/template/date_helper_test.rb +427 -43
- data/test/template/form_helper_test.rb +243 -44
- data/test/template/form_options_helper_test.rb +631 -565
- data/test/template/form_tag_helper_test.rb +9 -2
- data/test/template/javascript_helper_test.rb +0 -5
- data/test/template/number_helper_i18n_test.rb +60 -48
- data/test/template/number_helper_test.rb +1 -0
- data/test/template/render_test.rb +117 -35
- data/test/template/test_test.rb +4 -6
- data/test/template/text_helper_test.rb +129 -50
- data/test/template/translation_helper_test.rb +23 -19
- data/test/template/url_helper_test.rb +35 -2
- data/test/view/test_case_test.rb +8 -0
- metadata +197 -23
- data/lib/action_controller/assertions.rb +0 -69
- data/lib/action_controller/caching/sql_cache.rb +0 -18
- data/lib/action_controller/cgi_ext/session.rb +0 -53
- data/lib/action_controller/components.rb +0 -169
- data/lib/action_controller/rack_process.rb +0 -297
- data/lib/action_controller/request_profiler.rb +0 -169
- data/lib/action_controller/session/active_record_store.rb +0 -340
- data/lib/action_controller/session/drb_server.rb +0 -32
- data/lib/action_controller/session/drb_store.rb +0 -35
- data/test/controller/cgi_test.rb +0 -269
- data/test/controller/components_test.rb +0 -156
- data/test/controller/http_authentication_test.rb +0 -54
- data/test/controller/integration_upload_test.rb +0 -43
- data/test/controller/session_fixation_test.rb +0 -89
- data/test/controller/session_management_test.rb +0 -178
- data/test/fixtures/test/hello_world.js +0 -1
data/CHANGELOG
CHANGED
@@ -1,12 +1,68 @@
|
|
1
|
-
*2.2
|
1
|
+
*2.3.2 [Final] (March 15, 2009)*
|
2
2
|
|
3
|
-
*
|
3
|
+
* Fixed that redirection would just log the options, not the final url (which lead to "Redirected to #<Post:0x23150b8>") [DHH]
|
4
4
|
|
5
|
-
*
|
5
|
+
* Added ability to pass in :public => true to fresh_when, stale?, and expires_in to make the request proxy cachable #2095 [Gregg Pollack]
|
6
6
|
|
7
|
-
*
|
7
|
+
* Fixed that passing a custom form builder would be forwarded to nested fields_for calls #2023 [Eloy Duran/Nate Wiger]
|
8
|
+
|
9
|
+
* Form option helpers now support disabled option tags and the use of lambdas for selecting/disabling option tags from collections #837 [Tekin]
|
10
|
+
|
11
|
+
* Added partial scoping to TranslationHelper#translate, so if you call translate(".foo") from the people/index.html.erb template, you'll actually be calling I18n.translate("people.index.foo") [DHH]
|
12
|
+
|
13
|
+
* Fix a syntax error in current_page?() that was prevent matches against URL's with multiple query parameters #1385, #1868 [chris finne/Andrew White]
|
14
|
+
|
15
|
+
* Added localized rescue template when I18n.locale is set (ex: public/404.da.html) #1835 [José Valim]
|
16
|
+
|
17
|
+
* Make the form_for and fields_for helpers support the new Active Record nested update options. #1202 [Eloy Duran]
|
18
|
+
|
19
|
+
<% form_for @person do |person_form| %>
|
20
|
+
...
|
21
|
+
<% person_form.fields_for :projects do |project_fields| %>
|
22
|
+
<% if project_fields.object.active? %>
|
23
|
+
Name: <%= project_fields.text_field :name %>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
26
|
+
<% end %>
|
8
27
|
|
9
|
-
|
28
|
+
|
29
|
+
* Added grouped_options_for_select helper method for wrapping option tags in optgroups. #977 [Jon Crawford]
|
30
|
+
|
31
|
+
* Implement HTTP Digest authentication. #1230 [Gregg Kellogg, Pratik Naik] Example :
|
32
|
+
|
33
|
+
class DummyDigestController < ActionController::Base
|
34
|
+
USERS = { "lifo" => 'world' }
|
35
|
+
|
36
|
+
before_filter :authenticate
|
37
|
+
|
38
|
+
def index
|
39
|
+
render :text => "Hello Secret"
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def authenticate
|
45
|
+
authenticate_or_request_with_http_digest("Super Secret") do |username|
|
46
|
+
# Return the user's password
|
47
|
+
USERS[username]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
* Improved i18n support for the number_to_human_size helper. Changes the storage_units translation data; update your translations accordingly. #1634 [Yaroslav Markin]
|
53
|
+
storage_units:
|
54
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
55
|
+
format: "%n %u"
|
56
|
+
units:
|
57
|
+
byte:
|
58
|
+
one: "Byte"
|
59
|
+
other: "Bytes"
|
60
|
+
kb: "KB"
|
61
|
+
mb: "MB"
|
62
|
+
gb: "GB"
|
63
|
+
tb: "TB"
|
64
|
+
|
65
|
+
* Added :silence option to BenchmarkHelper#benchmark and turned log_level into a hash parameter and deprecated the old use [DHH]
|
10
66
|
|
11
67
|
* Fixed the AssetTagHelper cache to use the computed asset host as part of the cache key instead of just assuming the its a string #1299 [DHH]
|
12
68
|
|
@@ -61,12 +117,11 @@
|
|
61
117
|
* Remove deprecated render_component. Please use the plugin from http://github.com/rails/render_component/tree/master [Pratik Naik]
|
62
118
|
|
63
119
|
* Fixed RedCloth and BlueCloth shouldn't preload. Instead just assume that they're available if you want to use textilize and markdown and let autoload require them [David Heinemeier Hansson]
|
64
|
-
>>>>>>> 49a055d... Fixed the AssetTagHelper cache to use the computed asset host as part of the cache key instead of just assuming the its a string [#1299 state:committed]:actionpack/CHANGELOG
|
65
120
|
|
66
121
|
|
67
122
|
*2.2.2 (November 21st, 2008)*
|
68
123
|
|
69
|
-
*
|
124
|
+
* I18n: translate number_to_human_size. Add storage_units: [Bytes, KB, MB, GB, TB] to your translations. #1448 [Yaroslav Markin]
|
70
125
|
|
71
126
|
* Restore backwards compatible functionality for setting relative_url_root. Include deprecation
|
72
127
|
|
@@ -78,7 +133,7 @@
|
|
78
133
|
product.resources :images, :except => :destroy
|
79
134
|
end
|
80
135
|
|
81
|
-
* Added render :js for people who want to render inline JavaScript replies without using RJS [
|
136
|
+
* Added render :js for people who want to render inline JavaScript replies without using RJS [David Heinemeier Hansson]
|
82
137
|
|
83
138
|
* Fixed that polymorphic_url should compact given array #1317 [hiroshi]
|
84
139
|
|
@@ -88,17 +143,20 @@
|
|
88
143
|
|
89
144
|
* Fix regression bug that made date_select and datetime_select raise a Null Pointer Exception when a nil date/datetime was passed and only month and year were displayed #1289 [Bernardo Padua/Tor Erik]
|
90
145
|
|
91
|
-
* Simplified the logging format for parameters (don't include controller, action, and format as duplicates) [
|
146
|
+
* Simplified the logging format for parameters (don't include controller, action, and format as duplicates) [David Heinemeier Hansson]
|
92
147
|
|
93
|
-
* Remove the logging of the Session ID when the session store is CookieStore [
|
148
|
+
* Remove the logging of the Session ID when the session store is CookieStore [David Heinemeier Hansson]
|
94
149
|
|
95
150
|
* Fixed regex in redirect_to to fully support URI schemes #1247 [Seth Fitzsimmons]
|
96
151
|
|
97
152
|
* Fixed bug with asset timestamping when using relative_url_root #1265 [Joe Goldwasser]
|
98
153
|
|
154
|
+
|
155
|
+
*2.2.0 [RC1] (October 24th, 2008)*
|
156
|
+
|
99
157
|
* Fix incorrect closing CDATA delimiter and that HTML::Node.parse would blow up on unclosed CDATA sections [packagethief]
|
100
158
|
|
101
|
-
* Added stale? and fresh_when methods to provide a layer of abstraction above request.fresh? and friends [
|
159
|
+
* Added stale? and fresh_when methods to provide a layer of abstraction above request.fresh? and friends [David Heinemeier Hansson]. Example:
|
102
160
|
|
103
161
|
class ArticlesController < ApplicationController
|
104
162
|
def show_with_respond_to_block
|
@@ -148,13 +206,13 @@
|
|
148
206
|
|
149
207
|
* Fixed FormTagHelper#submit_tag with :disable_with option wouldn't submit the button's value when was clicked #633 [Jose Fernandez]
|
150
208
|
|
151
|
-
* Stopped logging template compiles as it only clogs up the log [
|
209
|
+
* Stopped logging template compiles as it only clogs up the log [David Heinemeier Hansson]
|
152
210
|
|
153
|
-
* Changed the X-Runtime header to report in milliseconds [
|
211
|
+
* Changed the X-Runtime header to report in milliseconds [David Heinemeier Hansson]
|
154
212
|
|
155
|
-
* Changed BenchmarkHelper#benchmark to report in milliseconds [
|
213
|
+
* Changed BenchmarkHelper#benchmark to report in milliseconds [David Heinemeier Hansson]
|
156
214
|
|
157
|
-
* Changed logging format to be millisecond based and skip misleading stats [
|
215
|
+
* Changed logging format to be millisecond based and skip misleading stats [David Heinemeier Hansson]. Went from:
|
158
216
|
|
159
217
|
Completed in 0.10000 (4 reqs/sec) | Rendering: 0.04000 (40%) | DB: 0.00400 (4%) | 200 OK [http://example.com]
|
160
218
|
|
@@ -178,7 +236,7 @@
|
|
178
236
|
|
179
237
|
* Added button_to_remote helper. #3641 [Donald Piret, Tarmo Tänav]
|
180
238
|
|
181
|
-
* Deprecate render_component. Please use render_component plugin from http://github.com/rails/render_component/tree/master [Pratik]
|
239
|
+
* Deprecate render_component. Please use render_component plugin from http://github.com/rails/render_component/tree/master [Pratik Naik]
|
182
240
|
|
183
241
|
* Routes may be restricted to lists of HTTP methods instead of a single method or :any. #407 [Brennan Dunn, Gaius Centus Novus]
|
184
242
|
map.resource :posts, :collection => { :search => [:get, :post] }
|
@@ -212,7 +270,7 @@
|
|
212
270
|
|
213
271
|
* All 2xx requests are considered successful [Josh Peek]
|
214
272
|
|
215
|
-
* Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host along with the source or per-request proc's won't run [
|
273
|
+
* Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host along with the source or per-request proc's won't run [David Heinemeier Hansson]
|
216
274
|
|
217
275
|
* Removed config.action_view.cache_template_loading, use config.cache_classes instead [Josh Peek]
|
218
276
|
|
@@ -275,7 +333,7 @@
|
|
275
333
|
|
276
334
|
* Replaced TemplateFinder abstraction with ViewLoadPaths [Josh Peek]
|
277
335
|
|
278
|
-
* Added block-call style to link_to [Sam Stephenson/
|
336
|
+
* Added block-call style to link_to [Sam Stephenson/David Heinemeier Hansson]. Example:
|
279
337
|
|
280
338
|
<% link_to(@profile) do %>
|
281
339
|
<strong><%= @profile.name %></strong> -- <span>Check it out!!</span>
|
@@ -306,30 +364,30 @@
|
|
306
364
|
|
307
365
|
* Added session(:on) to turn session management back on in a controller subclass if the superclass turned it off (Peter Jones) [#136]
|
308
366
|
|
309
|
-
* Change the request forgery protection to go by Content-Type instead of request.format so that you can't bypass it by POSTing to "#{request.uri}.xml" [
|
367
|
+
* Change the request forgery protection to go by Content-Type instead of request.format so that you can't bypass it by POSTing to "#{request.uri}.xml" [Rick Olson]
|
310
368
|
* InstanceTag#default_time_from_options with hash args uses Time.current as default; respects hash settings when time falls in system local spring DST gap [Geoff Buesing]
|
311
369
|
|
312
370
|
* select_date defaults to Time.zone.today when config.time_zone is set [Geoff Buesing]
|
313
371
|
|
314
372
|
* Fixed that TextHelper#text_field would corrypt when raw HTML was used as the value (mchenryc, Kevin Glowacz) [#80]
|
315
373
|
|
316
|
-
* Added ActionController::TestCase#rescue_action_in_public! to control whether the action under test should use the regular rescue_action path instead of simply raising the exception inline (great for error testing) [
|
374
|
+
* Added ActionController::TestCase#rescue_action_in_public! to control whether the action under test should use the regular rescue_action path instead of simply raising the exception inline (great for error testing) [David Heinemeier Hansson]
|
317
375
|
|
318
|
-
* Reduce number of instance variables being copied from controller to view. [Pratik]
|
376
|
+
* Reduce number of instance variables being copied from controller to view. [Pratik Naik]
|
319
377
|
|
320
378
|
* select_datetime and select_time default to Time.zone.now when config.time_zone is set [Geoff Buesing]
|
321
379
|
|
322
380
|
* datetime_select defaults to Time.zone.now when config.time_zone is set [Geoff Buesing]
|
323
381
|
|
324
|
-
* Remove ActionController::Base#view_controller_internals flag. [Pratik]
|
382
|
+
* Remove ActionController::Base#view_controller_internals flag. [Pratik Naik]
|
325
383
|
|
326
384
|
* Add conditional options to caches_page method. [Paul Horsfall]
|
327
385
|
|
328
|
-
* Move missing template logic to ActionView. [Pratik]
|
386
|
+
* Move missing template logic to ActionView. [Pratik Naik]
|
329
387
|
|
330
|
-
* Introduce ActionView::InlineTemplate class. [Pratik]
|
388
|
+
* Introduce ActionView::InlineTemplate class. [Pratik Naik]
|
331
389
|
|
332
|
-
* Automatically parse posted JSON content for Mime::JSON requests. [
|
390
|
+
* Automatically parse posted JSON content for Mime::JSON requests. [Rick Olson]
|
333
391
|
|
334
392
|
POST /posts
|
335
393
|
{"post": {"title": "Breaking News"}}
|
@@ -339,14 +397,14 @@
|
|
339
397
|
# ...
|
340
398
|
end
|
341
399
|
|
342
|
-
* add json_escape ERB util to escape html entities in json strings that are output in HTML pages. [
|
400
|
+
* add json_escape ERB util to escape html entities in json strings that are output in HTML pages. [Rick Olson]
|
343
401
|
|
344
402
|
* Provide a helper proxy to access helper methods from outside views. Closes #10839 [Josh Peek]
|
345
403
|
e.g. ApplicationController.helpers.simple_format(text)
|
346
404
|
|
347
405
|
* Improve documentation. [Xavier Noria, leethal, jerome]
|
348
406
|
|
349
|
-
* Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546 [
|
407
|
+
* Ensure RJS redirect_to doesn't html-escapes string argument. Closes #8546 [Josh Peek, eventualbuddha, Pratik Naik]
|
350
408
|
|
351
409
|
* Support render :partial => collection of heterogeneous elements. #11491 [Zach Dennis]
|
352
410
|
|
@@ -358,17 +416,17 @@
|
|
358
416
|
|
359
417
|
* Fixed HTML::Tokenizer (used in sanitize helper) didn't handle unclosed CDATA tags #10071 [esad, packagethief]
|
360
418
|
|
361
|
-
* Improve documentation. [
|
419
|
+
* Improve documentation. [Ryan Bigg, Jan De Poorter, Cheah Chu Yeow, Xavier Shay, Jack Danger Canty, Emilio Tagua, Xavier Noria, Sunny Ripert]
|
362
420
|
|
363
421
|
* Fixed that FormHelper#radio_button would produce invalid ids #11298 [harlancrystal]
|
364
422
|
|
365
|
-
* Added :confirm option to submit_tag #11415 [
|
423
|
+
* Added :confirm option to submit_tag #11415 [Emilio Tagua]
|
366
424
|
|
367
425
|
* Fixed NumberHelper#number_with_precision to properly round in a way that works equally on Mac, Windows, Linux (closes #11409, #8275, #10090, #8027) [zhangyuanyi]
|
368
426
|
|
369
|
-
* Allow the #simple_format text_helper to take an html_options hash for each paragraph. #2448 [
|
427
|
+
* Allow the #simple_format text_helper to take an html_options hash for each paragraph. #2448 [François Beausoleil, Chris O'Sullivan]
|
370
428
|
|
371
|
-
* Fix regression from filter refactoring where re-adding a skipped filter resulted in it being called twice. [
|
429
|
+
* Fix regression from filter refactoring where re-adding a skipped filter resulted in it being called twice. [Rick Olson]
|
372
430
|
|
373
431
|
* Refactor filters to use Active Support callbacks. #11235 [Josh Peek]
|
374
432
|
|
@@ -384,43 +442,43 @@
|
|
384
442
|
|
385
443
|
* Fix nested parameter hash parsing bug. #10797 [thomas.lee]
|
386
444
|
|
387
|
-
* Allow using named routes in ActionController::TestCase before any request has been made. Closes #11273 [
|
445
|
+
* Allow using named routes in ActionController::TestCase before any request has been made. Closes #11273 [Eloy Duran]
|
388
446
|
|
389
|
-
* 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 [
|
447
|
+
* 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 [David Heinemeier Hansson]
|
390
448
|
|
391
449
|
* Make MimeResponds::Responder#any work without explicit types. Closes #11140 [jaw6]
|
392
450
|
|
393
451
|
* Better error message for type conflicts when parsing params. Closes #7962 [spicycode, matt]
|
394
452
|
|
395
|
-
* Remove unused ActionController::Base.template_class. Closes #10787 [Pratik]
|
453
|
+
* Remove unused ActionController::Base.template_class. Closes #10787 [Pratik Naik]
|
396
454
|
|
397
|
-
* Moved template handlers related code from ActionView::Base to ActionView::Template. [Pratik]
|
455
|
+
* Moved template handlers related code from ActionView::Base to ActionView::Template. [Pratik Naik]
|
398
456
|
|
399
|
-
* Tests for div_for and content_tag_for helpers. Closes #11223 [
|
457
|
+
* Tests for div_for and content_tag_for helpers. Closes #11223 [Chris O'Sullivan]
|
400
458
|
|
401
459
|
* Allow file uploads in Integration Tests. Closes #11091 [RubyRedRick]
|
402
460
|
|
403
|
-
* Refactor partial rendering into a PartialTemplate class. [Pratik]
|
461
|
+
* Refactor partial rendering into a PartialTemplate class. [Pratik Naik]
|
404
462
|
|
405
|
-
* 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 [
|
463
|
+
* 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 [David Heinemeier Hansson]
|
406
464
|
|
407
|
-
* Tests for distance_of_time_in_words with TimeWithZone instances. Closes #10914 [
|
465
|
+
* Tests for distance_of_time_in_words with TimeWithZone instances. Closes #10914 [Ernesto Jimenez]
|
408
466
|
|
409
467
|
* Remove support for multivalued (e.g., '&'-delimited) cookies. [Jamis Buck]
|
410
468
|
|
411
469
|
* Fix problem with render :partial collections, records, and locals. #11057 [lotswholetime]
|
412
470
|
|
413
|
-
* Added support for naming concrete classes in sweeper declarations [
|
471
|
+
* Added support for naming concrete classes in sweeper declarations [David Heinemeier Hansson]
|
414
472
|
|
415
|
-
* Remove ERB trim variables from trace template in case ActionView::Base.erb_trim_mode is changed in the application. #10098 [
|
473
|
+
* Remove ERB trim variables from trace template in case ActionView::Base.erb_trim_mode is changed in the application. #10098 [Tim Pope, Chris Kampmeier]
|
416
474
|
|
417
|
-
* Fix typo in form_helper documentation. #10650 [
|
475
|
+
* Fix typo in form_helper documentation. #10650 [Xavier Shay, Chris Kampmeier]
|
418
476
|
|
419
477
|
* Fix bug with setting Request#format= after the getter has cached the value. #10889 [cch1]
|
420
478
|
|
421
|
-
* Correct inconsistencies in RequestForgeryProtection docs. #11032 [
|
479
|
+
* Correct inconsistencies in RequestForgeryProtection docs. #11032 [Mislav Marohnić]
|
422
480
|
|
423
|
-
* Introduce a Template class to ActionView. #11024 [
|
481
|
+
* Introduce a Template class to ActionView. #11024 [Pratik Naik]
|
424
482
|
|
425
483
|
* Introduce the :index option for form_for and fields_for to simplify multi-model forms (see http://railscasts.com/episodes/75). #9883 [rmm5t]
|
426
484
|
|
@@ -436,7 +494,7 @@
|
|
436
494
|
e.g. map.dashboard '/dashboard', :controller=>'dashboard'
|
437
495
|
map.root :dashboard
|
438
496
|
|
439
|
-
* Handle corner case with image_tag when passed 'messed up' image names. #9018 [
|
497
|
+
* Handle corner case with image_tag when passed 'messed up' image names. #9018 [Duncan Beevers, mpalmer]
|
440
498
|
|
441
499
|
* Add label_tag helper for generating elements. #10802 [DefV]
|
442
500
|
|
@@ -444,15 +502,15 @@
|
|
444
502
|
|
445
503
|
* Performance: optimize route recognition. Large speedup for apps with many resource routes. #10835 [oleganza]
|
446
504
|
|
447
|
-
* Make render :partial recognise form builders and use the _form partial. #10814 [
|
505
|
+
* Make render :partial recognise form builders and use the _form partial. #10814 [Damian Janowski]
|
448
506
|
|
449
507
|
* Allow users to declare other namespaces when using the atom feed helpers. #10304 [david.calavera]
|
450
508
|
|
451
509
|
* Introduce send_file :x_sendfile => true to send an X-Sendfile response header. [Jeremy Kemper]
|
452
510
|
|
453
|
-
* Fixed ActionView::Helpers::ActiveRecordHelper::form for when protect_from_forgery is used #10739 [
|
511
|
+
* Fixed ActionView::Helpers::ActiveRecordHelper::form for when protect_from_forgery is used #10739 [Jeremy Evans]
|
454
512
|
|
455
|
-
* Provide nicer access to HTTP Headers. Instead of request.env["HTTP_REFERRER"] you can now use request.headers["Referrer"]. [
|
513
|
+
* Provide nicer access to HTTP Headers. Instead of request.env["HTTP_REFERRER"] you can now use request.headers["Referrer"]. [Michael Koziarski]
|
456
514
|
|
457
515
|
* UrlWriter respects relative_url_root. #10748 [Cheah Chu Yeow]
|
458
516
|
|
@@ -462,26 +520,26 @@
|
|
462
520
|
|
463
521
|
* assert_response failures include the exception message. #10688 [Seth Rasmussen]
|
464
522
|
|
465
|
-
* All fragment cache keys are now by default prefixed with the "views/" namespace [
|
523
|
+
* All fragment cache keys are now by default prefixed with the "views/" namespace [David Heinemeier Hansson]
|
466
524
|
|
467
|
-
* 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 [
|
525
|
+
* 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 [David Heinemeier Hansson]
|
468
526
|
|
469
|
-
* Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [
|
527
|
+
* Deprecated ActionController::Base.fragment_cache_store for ActionController::Base.cache_store [David Heinemeier Hansson]
|
470
528
|
|
471
|
-
* Made fragment caching in views work for rjs and builder as well #6642 [
|
529
|
+
* Made fragment caching in views work for rjs and builder as well #6642 [Dee Zsombor]
|
472
530
|
|
473
531
|
* Fixed rendering of partials with layout when done from site layout #9209 [antramm]
|
474
532
|
|
475
|
-
* Fix atom_feed_helper to comply with the atom spec. Closes #10672 [
|
533
|
+
* Fix atom_feed_helper to comply with the atom spec. Closes #10672 [Xavier Shay]
|
476
534
|
|
477
535
|
* The tags created do not contain a date (http://feedvalidator.org/docs/error/InvalidTAG.html)
|
478
536
|
* IDs are not guaranteed unique
|
479
537
|
* A default self link was not provided, contrary to the documentation
|
480
538
|
* NOTE: This changes tags for existing atom entries, but at least they validate now.
|
481
539
|
|
482
|
-
* Correct indentation in tests. Closes #10671 [
|
540
|
+
* Correct indentation in tests. Closes #10671 [Luca Guidi]
|
483
541
|
|
484
|
-
* Fix that auto_link looks for ='s in url paths (Amazon urls have them). Closes #10640 [
|
542
|
+
* Fix that auto_link looks for ='s in url paths (Amazon urls have them). Closes #10640 [Brad Greenlee]
|
485
543
|
|
486
544
|
* Ensure that test case setup is run even if overridden. #10382 [Josh Peek]
|
487
545
|
|
@@ -498,7 +556,7 @@
|
|
498
556
|
|
499
557
|
* Added OPTIONS to list of default accepted HTTP methods #10449 [holoway]
|
500
558
|
|
501
|
-
* Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [
|
559
|
+
* Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [Cheah Chu Yeow]. Example:
|
502
560
|
|
503
561
|
ActionController::Base.asset_host = Proc.new { |source|
|
504
562
|
if source.starts_with?('/images')
|
@@ -527,45 +585,45 @@
|
|
527
585
|
|
528
586
|
* Fixed send_file/binary_content for testing #8044 [tolsen]
|
529
587
|
|
530
|
-
* When a NonInferrableControllerError is raised, make the proposed fix clearer in the error message. Closes #10199 [
|
588
|
+
* When a NonInferrableControllerError is raised, make the proposed fix clearer in the error message. Closes #10199 [Jack Danger Canty]
|
531
589
|
|
532
590
|
* Update Prototype to 1.6.0.1. [sam]
|
533
591
|
|
534
592
|
* Update script.aculo.us to 1.8.0.1. [madrobby]
|
535
593
|
|
536
|
-
* Add 'disabled' attribute to <OPTION> separators used in time zone and country selects. Closes #10354 [
|
594
|
+
* Add 'disabled' attribute to <OPTION> separators used in time zone and country selects. Closes #10354 [Josh Susser]
|
537
595
|
|
538
|
-
* Added the same record identification guessing rules to fields_for as form_for has [
|
596
|
+
* Added the same record identification guessing rules to fields_for as form_for has [David Heinemeier Hansson]
|
539
597
|
|
540
|
-
* Fixed that verification violations with no specified action didn't halt the chain (now they do with a 400 Bad Request) [
|
598
|
+
* Fixed that verification violations with no specified action didn't halt the chain (now they do with a 400 Bad Request) [David Heinemeier Hansson]
|
541
599
|
|
542
600
|
* Raise UnknownHttpMethod exception for unknown HTTP methods. Closes #10303 [Tarmo Tänav]
|
543
601
|
|
544
602
|
* Update to Prototype -r8232. [sam]
|
545
603
|
|
546
|
-
* Make sure the optimisation code for routes doesn't get used if :host, :anchor or :port are provided in the hash arguments. [pager,
|
604
|
+
* Make sure the optimisation code for routes doesn't get used if :host, :anchor or :port are provided in the hash arguments. [pager, Michael Koziarski] #10292
|
547
605
|
|
548
606
|
* Added protection from trailing slashes on page caching #10229 [devrieda]
|
549
607
|
|
550
|
-
* Asset timestamps are appended, not prepended. Closes #10276 [
|
608
|
+
* Asset timestamps are appended, not prepended. Closes #10276 [Mike Naberezny]
|
551
609
|
|
552
610
|
* Minor inconsistency in description of render example. Closes #10029 [ScottSchram]
|
553
611
|
|
554
|
-
* Add #prepend_view_path and #append_view_path instance methods on ActionController::Base for consistency with the class methods. [
|
612
|
+
* Add #prepend_view_path and #append_view_path instance methods on ActionController::Base for consistency with the class methods. [Rick Olson]
|
555
613
|
|
556
|
-
* Refactor sanitizer helpers into HTML classes and make it easy to swap them out with custom implementations. Closes #10129. [
|
614
|
+
* Refactor sanitizer helpers into HTML classes and make it easy to swap them out with custom implementations. Closes #10129. [Rick Olson]
|
557
615
|
|
558
|
-
* Add deprecation for old subtemplate syntax for ActionMailer templates, use render :partial [
|
616
|
+
* Add deprecation for old subtemplate syntax for ActionMailer templates, use render :partial [Rick Olson]
|
559
617
|
|
560
|
-
* Fix TemplateError so it doesn't bomb on exceptions while running tests [
|
618
|
+
* Fix TemplateError so it doesn't bomb on exceptions while running tests [Rick Olson]
|
561
619
|
|
562
|
-
* Fixed that named routes living under resources shouldn't have double slashes #10198 [
|
620
|
+
* Fixed that named routes living under resources shouldn't have double slashes #10198 [Isaac Feliu]
|
563
621
|
|
564
|
-
* Make sure that cookie sessions use a secret that is at least 30 chars in length. [
|
622
|
+
* Make sure that cookie sessions use a secret that is at least 30 chars in length. [Michael Koziarski]
|
565
623
|
|
566
624
|
* 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]
|
567
625
|
|
568
|
-
* Fixed that has_many :through associations should render as collections too #9051 [mathie/
|
626
|
+
* Fixed that has_many :through associations should render as collections too #9051 [mathie/Jack Danger Canty]
|
569
627
|
|
570
628
|
* Added :mouseover short-cut to AssetTagHelper#image_tag for doing easy image swaps #6893 [joost]
|
571
629
|
|
@@ -573,7 +631,7 @@
|
|
573
631
|
|
574
632
|
* Fix syntax error in documentation example for cycle method. Closes #8735 [foca]
|
575
633
|
|
576
|
-
* Document :with option for link_to_remote. Closes #8765 [
|
634
|
+
* Document :with option for link_to_remote. Closes #8765 [Ryan Bates]
|
577
635
|
|
578
636
|
* Document :minute_step option for time_select. Closes #8814 [brupm]
|
579
637
|
|
@@ -583,7 +641,7 @@
|
|
583
641
|
|
584
642
|
* Fix broken tag in assert_tag documentation. Closes #9037 [mfazekas]
|
585
643
|
|
586
|
-
* Add documentation for route conditions. Closes #9041 [innu,
|
644
|
+
* Add documentation for route conditions. Closes #9041 [innu, Manfred Stienstra]
|
587
645
|
|
588
646
|
* Fix typo left over from previous typo fix in url helper. Closes #9414 [Henrik N]
|
589
647
|
|
@@ -591,23 +649,23 @@
|
|
591
649
|
|
592
650
|
* Update Prototype to 1.6.0 and script.aculo.us to 1.8.0. [sam, madrobby]
|
593
651
|
|
594
|
-
* Expose the cookie jar as a helper method (before the view would just get the raw cookie hash) [
|
652
|
+
* Expose the cookie jar as a helper method (before the view would just get the raw cookie hash) [David Heinemeier Hansson]
|
595
653
|
|
596
654
|
* Integration tests: get_ and post_via_redirect take a headers hash. #9130 [simonjefford]
|
597
655
|
|
598
|
-
* Simplfy #view_paths implementation. ActionView templates get the exact object, not a dup. [Rick]
|
656
|
+
* Simplfy #view_paths implementation. ActionView templates get the exact object, not a dup. [Rick Olson]
|
599
657
|
|
600
|
-
* Update tests for ActiveSupport's JSON escaping change. [
|
658
|
+
* Update tests for ActiveSupport's JSON escaping change. [Rick Olson]
|
601
659
|
|
602
660
|
* FormHelper's auto_index should use #to_param instead of #id_before_type_cast. Closes #9994 [mattly]
|
603
661
|
|
604
662
|
* Doc typo fixes for ActiveRecordHelper. Closes #9973 [mikong]
|
605
663
|
|
606
|
-
* Make example parameters in restful routing docs idiomatic. Closes #9993 [
|
664
|
+
* Make example parameters in restful routing docs idiomatic. Closes #9993 [Jack Danger Canty]
|
607
665
|
|
608
666
|
* Make documentation comment for mime responders match documentation example. Closes #9357 [yon]
|
609
667
|
|
610
|
-
* Introduce a new test case class for functional tests. ActionController::TestCase. [
|
668
|
+
* Introduce a new test case class for functional tests. ActionController::TestCase. [Michael Koziarski]
|
611
669
|
|
612
670
|
* Fix incorrect path in helper rdoc. Closes #9926 [viktor tron]
|
613
671
|
|
@@ -623,13 +681,13 @@
|
|
623
681
|
|
624
682
|
* Disabled checkboxes don't submit a form value. #9301 [vladr, robinjfisher]
|
625
683
|
|
626
|
-
* Added tests for options to ActiveRecordHelper#form. Closes #7213 [richcollins, mikong,
|
684
|
+
* Added tests for options to ActiveRecordHelper#form. Closes #7213 [richcollins, mikong, Mislav Marohnić]
|
627
685
|
|
628
|
-
* Changed before_filter halting to happen automatically on render or redirect but no longer on simply returning false [
|
686
|
+
* Changed before_filter halting to happen automatically on render or redirect but no longer on simply returning false [David Heinemeier Hansson]
|
629
687
|
|
630
688
|
* Ensure that cookies handle array values correctly. Closes #9937 [queso]
|
631
689
|
|
632
|
-
* Make sure resource routes don't clash with internal helpers like javascript_path, image_path etc. #9928 [
|
690
|
+
* Make sure resource routes don't clash with internal helpers like javascript_path, image_path etc. #9928 [Geoff Buesing]
|
633
691
|
|
634
692
|
* caches_page uses a single after_filter instead of one per action. #9891 [Pratik Naik]
|
635
693
|
|
@@ -641,15 +699,15 @@
|
|
641
699
|
|
642
700
|
* 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]
|
643
701
|
|
644
|
-
* Make sure that custom inflections are picked up by map.resources. #9815 [
|
702
|
+
* Make sure that custom inflections are picked up by map.resources. #9815 [Mislav Marohnić]
|
645
703
|
|
646
|
-
* Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [
|
704
|
+
* Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [David Heinemeier Hansson]
|
647
705
|
|
648
|
-
* Extracted sanitization methods from TextHelper to SanitizeHelper [
|
706
|
+
* Extracted sanitization methods from TextHelper to SanitizeHelper [David Heinemeier Hansson]
|
649
707
|
|
650
708
|
* rescue_from accepts :with => lambda { |exception| ... } or a normal block. #9827 [Pratik Naik]
|
651
709
|
|
652
|
-
* Add :status to redirect_to allowing users to choose their own response code without manually setting headers. #8297 [
|
710
|
+
* Add :status to redirect_to allowing users to choose their own response code without manually setting headers. #8297 [Coda Hale, chasgrundy]
|
653
711
|
|
654
712
|
* Add link_to :back which uses your referrer with a fallback to a javascript link. #7366 [eventualbuddha, Tarmo Tänav]
|
655
713
|
|
@@ -657,13 +715,13 @@
|
|
657
715
|
|
658
716
|
* Fix url_for, redirect_to, etc. with :controller => :symbol instead of 'string'. #8562, #9525 [Justin Lynn, Tarmo Tänav, shoe]
|
659
717
|
|
660
|
-
* Use #require_library_or_gem to load the memcache library for the MemCache session and fragment cache stores. Closes #8662. [Rick]
|
718
|
+
* Use #require_library_or_gem to load the memcache library for the MemCache session and fragment cache stores. Closes #8662. [Rick Olson]
|
661
719
|
|
662
|
-
* Move ActionController::Routing.optimise_named_routes to ActionController::Base.optimise_named_routes. Now you can set it in the config. [Rick]
|
720
|
+
* Move ActionController::Routing.optimise_named_routes to ActionController::Base.optimise_named_routes. Now you can set it in the config. [Rick Olson]
|
663
721
|
|
664
722
|
config.action_controller.optimise_named_routes = false
|
665
723
|
|
666
|
-
* ActionController::Routing::DynamicSegment#interpolation_chunk should call #to_s on all values before calling URI.escape. [Rick]
|
724
|
+
* ActionController::Routing::DynamicSegment#interpolation_chunk should call #to_s on all values before calling URI.escape. [Rick Olson]
|
667
725
|
|
668
726
|
* Only accept session ids from cookies, prevents session fixation attacks. [bradediger]
|
669
727
|
|
@@ -672,7 +730,7 @@
|
|
672
730
|
|
673
731
|
* Fixed that render template did not honor exempt_from_layout #9698 [pezra]
|
674
732
|
|
675
|
-
* Better error messages if you leave out the :secret option for request forgery protection. Closes #9670 [
|
733
|
+
* Better error messages if you leave out the :secret option for request forgery protection. Closes #9670 [Rick Olson]
|
676
734
|
|
677
735
|
* Allow ability to disable request forgery protection, disable it in test mode by default. Closes #9693 [Pratik Naik]
|
678
736
|
|
@@ -684,40 +742,40 @@
|
|
684
742
|
|
685
743
|
* Cache asset ids. [Jeremy Kemper]
|
686
744
|
|
687
|
-
* Optimized named routes respect AbstractRequest.relative_url_root. #9612 [
|
745
|
+
* Optimized named routes respect AbstractRequest.relative_url_root. #9612 [Daniel Morrison, Jeremy Kemper]
|
688
746
|
|
689
747
|
* Introduce ActionController::Base.rescue_from to declare exception-handling methods. Cleaner style than the case-heavy rescue_action_in_public. #9449 [Norbert Crombach]
|
690
748
|
|
691
|
-
* Rename some RequestForgeryProtection methods. The class method is now #protect_from_forgery, and the default parameter is now 'authenticity_token'. [Rick]
|
749
|
+
* Rename some RequestForgeryProtection methods. The class method is now #protect_from_forgery, and the default parameter is now 'authenticity_token'. [Rick Olson]
|
692
750
|
|
693
|
-
* Merge csrf_killer plugin into rails. Adds RequestForgeryProtection model that verifies session-specific _tokens for non-GET requests. [Rick]
|
751
|
+
* Merge csrf_killer plugin into rails. Adds RequestForgeryProtection model that verifies session-specific _tokens for non-GET requests. [Rick Olson]
|
694
752
|
|
695
|
-
* Secure #sanitize, #strip_tags, and #strip_links helpers against xss attacks. Closes #8877. [Rick, Pratik Naik, Jacques Distler]
|
753
|
+
* Secure #sanitize, #strip_tags, and #strip_links helpers against xss attacks. Closes #8877. [Rick Olson, Pratik Naik, Jacques Distler]
|
696
754
|
|
697
755
|
This merges and renames the popular white_list helper (along with some css sanitizing from Jacques Distler version of the same plugin).
|
698
756
|
Also applied updated versions of #strip_tags and #strip_links from #8877.
|
699
757
|
|
700
758
|
* Remove use of & logic operator. Closes #8114. [watson]
|
701
759
|
|
702
|
-
* Fixed JavaScriptHelper#escape_javascript to also escape closing tags #8023 [
|
760
|
+
* Fixed JavaScriptHelper#escape_javascript to also escape closing tags #8023 [Ruy Asan]
|
703
761
|
|
704
762
|
* Fixed TextHelper#word_wrap for multiline strings with extra carrier returns #8663 [seth]
|
705
763
|
|
706
764
|
* Fixed that setting the :host option in url_for would automatically turn off :only_path (since :host would otherwise not be shown) #9586 [Bounga]
|
707
765
|
|
708
|
-
* Added FormHelper#label. #8641, #9850 [jcoglan,
|
766
|
+
* Added FormHelper#label. #8641, #9850 [jcoglan, Jarkko Laine]
|
709
767
|
|
710
|
-
* Added AtomFeedHelper (slightly improved from the atom_feed_helper plugin) [
|
768
|
+
* Added AtomFeedHelper (slightly improved from the atom_feed_helper plugin) [David Heinemeier Hansson]
|
711
769
|
|
712
|
-
* 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. [
|
770
|
+
* 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. [Michael Koziarski]
|
713
771
|
|
714
|
-
* Added support for HTTP Only cookies (works in IE6+ and FF 2.0.5+) as an improvement for XSS attacks #8895 [Pratik Naik,
|
772
|
+
* Added support for HTTP Only cookies (works in IE6+ and FF 2.0.5+) as an improvement for XSS attacks #8895 [Pratik Naik, Mark Somerville]
|
715
773
|
|
716
774
|
* Don't warn when a path segment precedes a required segment. Closes #9615. [Nicholas Seckar]
|
717
775
|
|
718
776
|
* Fixed CaptureHelper#content_for to work with the optional content parameter instead of just the block #9434 [sandofsky/wildchild].
|
719
777
|
|
720
|
-
* Added Mime::Type.register_alias for dealing with different formats using the same mime type [
|
778
|
+
* Added Mime::Type.register_alias for dealing with different formats using the same mime type [David Heinemeier Hansson]. Example:
|
721
779
|
|
722
780
|
class PostsController < ApplicationController
|
723
781
|
before_filter :adjust_format_for_iphone
|
@@ -740,7 +798,7 @@
|
|
740
798
|
end
|
741
799
|
end
|
742
800
|
|
743
|
-
* Added that render :json will automatically call .to_json unless it's being passed a string [
|
801
|
+
* Added that render :json will automatically call .to_json unless it's being passed a string [David Heinemeier Hansson].
|
744
802
|
|
745
803
|
* Autolink behaves well with emails embedded in URLs. #7313 [Jeremy McAnally, Tarmo Tänav]
|
746
804
|
|
@@ -752,7 +810,7 @@
|
|
752
810
|
|
753
811
|
* root_path returns '/' not ''. #9563 [Pratik Naik]
|
754
812
|
|
755
|
-
* Fixed that setting request.format should also affect respond_to blocks [
|
813
|
+
* Fixed that setting request.format should also affect respond_to blocks [David Heinemeier Hansson]
|
756
814
|
|
757
815
|
* Add option to force binary mode on tempfile used for fixture_file_upload. #6380 [Jonathan Viney]
|
758
816
|
|
@@ -762,20 +820,20 @@
|
|
762
820
|
|
763
821
|
* Moved ActionController::Macros::InPlaceEditing into the in_place_editor plugin on the official Rails svn. #9513 [Pratik Naik]
|
764
822
|
|
765
|
-
* Removed deprecated form of calling xml_http_request/xhr without the first argument being the http verb [
|
823
|
+
* Removed deprecated form of calling xml_http_request/xhr without the first argument being the http verb [David Heinemeier Hansson]
|
766
824
|
|
767
|
-
* Removed deprecated methods [
|
825
|
+
* Removed deprecated methods [David Heinemeier Hansson]:
|
768
826
|
|
769
827
|
- ActionController::Base#keep_flash (use flash.keep instead)
|
770
828
|
- ActionController::Base#expire_matched_fragments (just call expire_fragment with a regular expression)
|
771
829
|
- ActionController::Base.template_root/= methods (use ActionController#Base.view_paths/= instead)
|
772
830
|
- ActionController::Base.cookie (use ActionController#Base.cookies[]= instead)
|
773
831
|
|
774
|
-
* Removed the deprecated behavior of appending ".png" to image_tag/image_path calls without an existing extension [
|
832
|
+
* Removed the deprecated behavior of appending ".png" to image_tag/image_path calls without an existing extension [David Heinemeier Hansson]
|
775
833
|
|
776
|
-
* 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!) [
|
834
|
+
* 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!) [David Heinemeier Hansson]
|
777
835
|
|
778
|
-
* Optimise named route generation when using positional arguments. [
|
836
|
+
* Optimise named route generation when using positional arguments. [Michael Koziarski]
|
779
837
|
|
780
838
|
This change delivers significant performance benefits for the most
|
781
839
|
common usage scenarios for modern rails applications by avoiding the
|
@@ -786,9 +844,9 @@
|
|
786
844
|
|
787
845
|
* Fix layout overriding response status. #9476 [lotswholetime]
|
788
846
|
|
789
|
-
* Add field_set_tag for generating field_sets, closes #9477. [
|
847
|
+
* Add field_set_tag for generating field_sets, closes #9477. [Damian Janowski]
|
790
848
|
|
791
|
-
* Allow additional parameters to be passed to named route helpers when using positional arguments. Closes #8930 [
|
849
|
+
* Allow additional parameters to be passed to named route helpers when using positional arguments. Closes #8930 [Ian White]
|
792
850
|
|
793
851
|
* Make render :partial work with a :collection of Hashes, previously this wasn't possible due to backwards compatibility restrictions. [Pratik Naik]
|
794
852
|
|
@@ -798,15 +856,15 @@
|
|
798
856
|
|
799
857
|
* Find layouts even if they're not in the first view_paths directory. Closes #9258 [caio]
|
800
858
|
|
801
|
-
* Major improvement to the documentation for the options / select form helpers. Closes #9038 [
|
859
|
+
* Major improvement to the documentation for the options / select form helpers. Closes #9038 [Chris Kampmeier, jardeon, wesg]
|
802
860
|
|
803
861
|
* Fix number_to_human_size when using different precisions. Closes #7536. [RichardStrand, mpalmer]
|
804
862
|
|
805
|
-
* Added partial layouts (see example in action_view/lib/partials.rb) [
|
863
|
+
* Added partial layouts (see example in action_view/lib/partials.rb) [David Heinemeier Hansson]
|
806
864
|
|
807
|
-
* Allow you to set custom :conditions on resource routes. [Rick]
|
865
|
+
* Allow you to set custom :conditions on resource routes. [Rick Olson]
|
808
866
|
|
809
|
-
* Fixed that file.content_type for uploaded files would include a trailing \r #9053 [
|
867
|
+
* Fixed that file.content_type for uploaded files would include a trailing \r #9053 [Brad Greenlee]
|
810
868
|
|
811
869
|
* url_for now accepts a series of symbols representing the namespace of the record [Josh Knowles]
|
812
870
|
|
@@ -814,7 +872,7 @@
|
|
814
872
|
|
815
873
|
* Make sure missing template exceptions actually say which template they were looking for. Closes #8683 [dasil003]
|
816
874
|
|
817
|
-
* Fix errors with around_filters which do not yield, restore 1.1 behaviour with after filters. Closes #8891 [
|
875
|
+
* Fix errors with around_filters which do not yield, restore 1.1 behaviour with after filters. Closes #8891 [Stefan Kaes]
|
818
876
|
|
819
877
|
After filters will *no longer* be run if an around_filter fails to yield, users relying on
|
820
878
|
this behaviour are advised to put the code in question after a yield statement in an around filter.
|
@@ -826,13 +884,13 @@
|
|
826
884
|
|
827
885
|
render :partial => 'show.html.erb'
|
828
886
|
|
829
|
-
* Improve capture helper documentation. #8796 [
|
887
|
+
* Improve capture helper documentation. #8796 [Chris Kampmeier]
|
830
888
|
|
831
889
|
* 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]
|
832
890
|
|
833
|
-
* Allow sweepers to be created solely for expiring after controller actions, not model changes [
|
891
|
+
* Allow sweepers to be created solely for expiring after controller actions, not model changes [David Heinemeier Hansson]
|
834
892
|
|
835
|
-
* Added assigns method to ActionController::Caching::Sweeper to easily access instance variables on the controller [
|
893
|
+
* Added assigns method to ActionController::Caching::Sweeper to easily access instance variables on the controller [David Heinemeier Hansson]
|
836
894
|
|
837
895
|
* Give the legacy X-POST_DATA_FORMAT header greater precedence during params parsing for backward compatibility. [Jeremy Kemper]
|
838
896
|
|
@@ -840,11 +898,11 @@
|
|
840
898
|
|
841
899
|
* Fixed that radio_button_tag should generate unique ids #3353 [Bob Silva, Rebecca, Josh Peek]
|
842
900
|
|
843
|
-
* Fixed that HTTP authentication should work if the header is called REDIRECT_X_HTTP_AUTHORIZATION as well #6754 [
|
901
|
+
* Fixed that HTTP authentication should work if the header is called REDIRECT_X_HTTP_AUTHORIZATION as well #6754 [Mislav Marohnić]
|
844
902
|
|
845
903
|
* Don't mistakenly interpret the request uri as the query string. #8731 [Pratik Naik, Jeremy Kemper]
|
846
904
|
|
847
|
-
* 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,
|
905
|
+
* 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 Olson]
|
848
906
|
|
849
907
|
* Tolerate missing content type on multipart file uploads. Fix for Safari 3. [Jeremy Kemper]
|
850
908
|
|
@@ -860,7 +918,7 @@
|
|
860
918
|
|
861
919
|
* 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]
|
862
920
|
|
863
|
-
* Assume html format when rendering partials in RJS. #8076 [Rick]
|
921
|
+
* Assume html format when rendering partials in RJS. #8076 [Rick Olson]
|
864
922
|
|
865
923
|
* Don't double-escape url_for in views. #8144 [Rich Collins, Josh Peek]
|
866
924
|
|
@@ -880,13 +938,13 @@
|
|
880
938
|
|
881
939
|
* Reduce file stat calls when checking for template changes. #7736 [alex]
|
882
940
|
|
883
|
-
* Added custom path cache_page/expire_page parameters in addition to the options hashes [
|
941
|
+
* Added custom path cache_page/expire_page parameters in addition to the options hashes [David Heinemeier Hansson]. Example:
|
884
942
|
|
885
943
|
def index
|
886
944
|
caches_page(response.body, "/index.html")
|
887
945
|
end
|
888
946
|
|
889
|
-
* Action Caching speedup. #8231 [
|
947
|
+
* Action Caching speedup. #8231 [Stefan Kaes]
|
890
948
|
|
891
949
|
* Wordsmith resources documentation. #8484 [marclove]
|
892
950
|
|
@@ -904,21 +962,21 @@
|
|
904
962
|
|
905
963
|
* Added option to suppress :size when using :maxlength for FormTagHelper#text_field #3112 [Tim Pope]
|
906
964
|
|
907
|
-
* catch possible WSOD when trying to render a missing partial. Closes #8454 [
|
965
|
+
* catch possible WSOD when trying to render a missing partial. Closes #8454 [Jonathan del Strother]
|
908
966
|
|
909
967
|
* Rewind request body after reading it, if possible. #8438 [s450r1]
|
910
968
|
|
911
|
-
* Resource namespaces are inherited by their has_many subresources. #8280 [marclove,
|
969
|
+
* Resource namespaces are inherited by their has_many subresources. #8280 [marclove, Geoff Garside]
|
912
970
|
|
913
971
|
* Fix filtered parameter logging with nil parameter values. #8422 [choonkeat]
|
914
972
|
|
915
|
-
* Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST. #7124 [Nik Wakelin,
|
973
|
+
* Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST. #7124 [Nik Wakelin, François Beausoleil, Wizard]
|
916
974
|
|
917
975
|
* Document caches_action. #5419 [Jarkko Laine]
|
918
976
|
|
919
977
|
* Update to Prototype 1.5.1. [Sam Stephenson]
|
920
978
|
|
921
|
-
* Allow routes to be decalred under namespaces [Tobias
|
979
|
+
* Allow routes to be decalred under namespaces [Tobias Lütke]:
|
922
980
|
|
923
981
|
map.namespace :admin do |admin|
|
924
982
|
admin.root :controller => "products"
|
@@ -927,13 +985,13 @@
|
|
927
985
|
|
928
986
|
* Update to script.aculo.us 1.7.1_beta3. [Thomas Fuchs]
|
929
987
|
|
930
|
-
* observe_form always sends the serialized form. #5271 [
|
988
|
+
* observe_form always sends the serialized form. #5271 [Manfred Stienstra, normelton@gmail.com]
|
931
989
|
|
932
990
|
* Parse url-encoded and multipart requests ourselves instead of delegating to CGI. [Jeremy Kemper]
|
933
991
|
|
934
992
|
* select :include_blank option can be set to a string instead of true, which just uses an empty string. #7664 [Wizard]
|
935
993
|
|
936
|
-
* Added url_for usage on render :location, which allows for record identification [
|
994
|
+
* Added url_for usage on render :location, which allows for record identification [David Heinemeier Hansson]. Example:
|
937
995
|
|
938
996
|
render :xml => person, :status => :created, :location => person
|
939
997
|
|
@@ -959,7 +1017,7 @@
|
|
959
1017
|
end
|
960
1018
|
end
|
961
1019
|
|
962
|
-
* Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [
|
1020
|
+
* Added record identifications to FormHelper#form_for and PrototypeHelper#remote_form_for [David Heinemeier Hansson]. Examples:
|
963
1021
|
|
964
1022
|
<% form_for(@post) do |f| %>
|
965
1023
|
...
|
@@ -983,28 +1041,28 @@
|
|
983
1041
|
...
|
984
1042
|
<% end %>
|
985
1043
|
|
986
|
-
* Rationalize route path escaping according to RFC 2396 section 3.3. #7544, #8307. [Jeremy Kemper,
|
1044
|
+
* Rationalize route path escaping according to RFC 2396 section 3.3. #7544, #8307. [Jeremy Kemper, Chris Roos, begemot, jugend]
|
987
1045
|
|
988
|
-
* Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [
|
1046
|
+
* Added record identification with polymorphic routes for ActionController::Base#url_for and ActionView::Base#url_for [David Heinemeier Hansson]. Examples:
|
989
1047
|
|
990
1048
|
redirect_to(post) # => redirect_to(posts_url(post)) => Location: http://example.com/posts/1
|
991
1049
|
link_to(post.title, post) # => link_to(post.title, posts_url(post)) => <a href="/posts/1">Hello world</a>
|
992
1050
|
|
993
1051
|
Any method that calls url_for on its parameters will automatically benefit from this.
|
994
1052
|
|
995
|
-
* Removed deprecated parameters_for_method_reference concept (legacy from before named routes) [
|
1053
|
+
* Removed deprecated parameters_for_method_reference concept (legacy from before named routes) [David Heinemeier Hansson]
|
996
1054
|
|
997
1055
|
* Add ActionController::Routing::Helpers, a module to contain common URL helpers such as polymorphic_url. [Nicholas Seckar]
|
998
1056
|
|
999
|
-
* Included the HttpAuthentication plugin as part of core (ActionController::HttpAuthentication::Basic) [
|
1057
|
+
* Included the HttpAuthentication plugin as part of core (ActionController::HttpAuthentication::Basic) [David Heinemeier Hansson]
|
1000
1058
|
|
1001
|
-
* Modernize documentation for form helpers. [
|
1059
|
+
* Modernize documentation for form helpers. [Jeremy McAnally]
|
1002
1060
|
|
1003
1061
|
* Add brief introduction to REST to the resources documentation. [fearoffish]
|
1004
1062
|
|
1005
1063
|
* Fix various documentation typos throughout ActionPack. [Henrik N]
|
1006
1064
|
|
1007
|
-
* Enhance documentation and add examples for url_for. [
|
1065
|
+
* Enhance documentation and add examples for url_for. [Jeremy McAnally]
|
1008
1066
|
|
1009
1067
|
* Fix documentation typo in routes. [Norbert Crombach, pam]
|
1010
1068
|
|
@@ -1014,24 +1072,24 @@
|
|
1014
1072
|
|
1015
1073
|
* Replace the current block/continuation filter chain handling by an implementation based on a simple loop. #8226 [Stefan Kaes]
|
1016
1074
|
|
1017
|
-
* Update UrlWriter to accept :anchor parameter. Closes #6771. [
|
1075
|
+
* Update UrlWriter to accept :anchor parameter. Closes #6771. [Chris McGrath]
|
1018
1076
|
|
1019
|
-
* Added RecordTagHelper for using RecordIdentifier conventions on divs and other container elements [
|
1077
|
+
* Added RecordTagHelper for using RecordIdentifier conventions on divs and other container elements [David Heinemeier Hansson]. Example:
|
1020
1078
|
|
1021
1079
|
<% div_for(post) do %> <div id="post_45" class="post">
|
1022
1080
|
<%= post.body %> What a wonderful world!
|
1023
1081
|
<% end %> </div>
|
1024
1082
|
|
1025
|
-
* Added page[record] accessor to JavaScriptGenerator that relies on RecordIdentifier to find the right dom id [
|
1083
|
+
* Added page[record] accessor to JavaScriptGenerator that relies on RecordIdentifier to find the right dom id [David Heinemeier Hansson]. Example:
|
1026
1084
|
|
1027
1085
|
format.js do
|
1028
1086
|
# Calls: new Effect.fade('post_45');
|
1029
1087
|
render(:update) { |page| page[post].visual_effect(:fade) }
|
1030
1088
|
end
|
1031
1089
|
|
1032
|
-
* Added RecordIdentifier to enforce view conventions on records for dom ids, classes, and partial paths [
|
1090
|
+
* Added RecordIdentifier to enforce view conventions on records for dom ids, classes, and partial paths [David Heinemeier Hansson]
|
1033
1091
|
|
1034
|
-
* Added map.namespace to deal with the common situation of admin sections and the like [
|
1092
|
+
* Added map.namespace to deal with the common situation of admin sections and the like [David Heinemeier Hansson]
|
1035
1093
|
|
1036
1094
|
Before:
|
1037
1095
|
|
@@ -1049,7 +1107,7 @@
|
|
1049
1107
|
:has_many => [ :tags, :images, :variants ]
|
1050
1108
|
end
|
1051
1109
|
|
1052
|
-
* Added :name_prefix as standard for nested resources [
|
1110
|
+
* Added :name_prefix as standard for nested resources [David Heinemeier Hansson]. WARNING: May be backwards incompatible with your app
|
1053
1111
|
|
1054
1112
|
Before:
|
1055
1113
|
|
@@ -1067,7 +1125,7 @@
|
|
1067
1125
|
|
1068
1126
|
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.
|
1069
1127
|
|
1070
|
-
* Added :has_many and :has_one for declaring plural and singular resources beneath the current [
|
1128
|
+
* Added :has_many and :has_one for declaring plural and singular resources beneath the current [David Heinemeier Hansson]
|
1071
1129
|
|
1072
1130
|
Before:
|
1073
1131
|
|
@@ -1081,28 +1139,28 @@
|
|
1081
1139
|
|
1082
1140
|
map.resources :notes, :has_many => [ :comments, :attachments ], :has_one => :author
|
1083
1141
|
|
1084
|
-
* Added that render :xml will try to call to_xml if it can [
|
1142
|
+
* Added that render :xml will try to call to_xml if it can [David Heinemeier Hansson]. Makes these work:
|
1085
1143
|
|
1086
1144
|
render :xml => post
|
1087
1145
|
render :xml => comments
|
1088
1146
|
|
1089
|
-
* Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [
|
1147
|
+
* Added :location option to render so that the common pattern of rendering a response after creating a new resource is now a 1-liner [David Heinemeier Hansson]
|
1090
1148
|
|
1091
1149
|
render :xml => post.to_xml, :status => :created, :location => post_url(post)
|
1092
1150
|
|
1093
|
-
* Ensure that render_text only adds string content to the body of the response [
|
1151
|
+
* Ensure that render_text only adds string content to the body of the response [David Heinemeier Hansson]
|
1094
1152
|
|
1095
1153
|
* Return the string representation from an Xml Builder when rendering a partial. Closes #5044 [Tim Pope]
|
1096
1154
|
|
1097
|
-
* Fixed that parameters from XML should also be presented in a hash with indifferent access [
|
1155
|
+
* Fixed that parameters from XML should also be presented in a hash with indifferent access [David Heinemeier Hansson]
|
1098
1156
|
|
1099
|
-
* 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]
|
1157
|
+
* 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 Olson]
|
1100
1158
|
|
1101
|
-
* The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick]
|
1159
|
+
* The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick Olson]
|
1102
1160
|
|
1103
1161
|
* Allow layouts with extension of .html.erb. Closes #8032 [Josh Knowles]
|
1104
1162
|
|
1105
|
-
* Change default respond_to templates for xml and rjs formats. [Rick]
|
1163
|
+
* Change default respond_to templates for xml and rjs formats. [Rick Olson]
|
1106
1164
|
|
1107
1165
|
* Default xml template goes from #{action_name}.rxml => #{action_name}.xml.builder.
|
1108
1166
|
* Default rjs template goes from #{action_name}.rjs => #{action_name}.js.rjs.
|
@@ -1115,21 +1173,21 @@
|
|
1115
1173
|
end
|
1116
1174
|
end
|
1117
1175
|
|
1118
|
-
* 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]
|
1176
|
+
* 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 Olson]
|
1119
1177
|
|
1120
|
-
* Fix WSOD when template compilation fails [Rick]
|
1178
|
+
* Fix WSOD when template compilation fails [Rick Olson]
|
1121
1179
|
|
1122
|
-
* 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]
|
1180
|
+
* 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 Olson]
|
1123
1181
|
|
1124
1182
|
* Highlight helper highlights one or many terms in a single pass. [Jeremy Kemper]
|
1125
1183
|
|
1126
|
-
* 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 [
|
1184
|
+
* 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 [David Heinemeier Hansson]
|
1127
1185
|
|
1128
|
-
* Added that FormTagHelper#submit_tag will return to its original state if the submit fails and you're using :disable_with [
|
1186
|
+
* Added that FormTagHelper#submit_tag will return to its original state if the submit fails and you're using :disable_with [David Heinemeier Hansson]
|
1129
1187
|
|
1130
|
-
* Cleaned up, corrected, and mildly expanded ActionPack documentation. Closes #7190 [
|
1188
|
+
* Cleaned up, corrected, and mildly expanded ActionPack documentation. Closes #7190 [Jeremy McAnally]
|
1131
1189
|
|
1132
|
-
* Small collection of ActionController documentation cleanups. Closes #7319 [
|
1190
|
+
* Small collection of ActionController documentation cleanups. Closes #7319 [Jeremy McAnally]
|
1133
1191
|
|
1134
1192
|
* Make sure the route expiry hash is constructed by comparing the to_param-ized values of each hash. [Jamis Buck]
|
1135
1193
|
|
@@ -1159,19 +1217,19 @@
|
|
1159
1217
|
* 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]
|
1160
1218
|
|
1161
1219
|
# Add a #dbman attr_reader for CGI::Session and make CGI::Session::CookieStore#generate_digest public so it's easy to generate digests
|
1162
|
-
using the cookie store's secret. [Rick]
|
1220
|
+
using the cookie store's secret. [Rick Olson]
|
1163
1221
|
|
1164
|
-
* Added Request#url that returns the complete URL used for the request [
|
1222
|
+
* Added Request#url that returns the complete URL used for the request [David Heinemeier Hansson]
|
1165
1223
|
|
1166
1224
|
* Extract dynamic scaffolding into a plugin. #7700 [Josh Peek]
|
1167
1225
|
|
1168
|
-
* Added user/password options for url_for to add http authentication in a URL [
|
1226
|
+
* Added user/password options for url_for to add http authentication in a URL [David Heinemeier Hansson]
|
1169
1227
|
|
1170
1228
|
* Fixed that FormTagHelper#text_area_tag should disregard :size option if it's not a string [Brendon Davidson]
|
1171
1229
|
|
1172
1230
|
* 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]
|
1173
1231
|
|
1174
|
-
* session_enabled? works with session :off. #6680 [
|
1232
|
+
* session_enabled? works with session :off. #6680 [Jonathan del Strother]
|
1175
1233
|
|
1176
1234
|
* Added :port and :host handling to UrlRewriter (which unified url_for usage, regardless of whether it's called in view or controller) #7616 [alancfrancis]
|
1177
1235
|
|
@@ -1183,7 +1241,7 @@ using the cookie store's secret. [Rick]
|
|
1183
1241
|
|
1184
1242
|
* Cookie session store: empty and unchanged sessions don't write a cookie. [Jeremy Kemper]
|
1185
1243
|
|
1186
|
-
* Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [
|
1244
|
+
* Added helper(:all) as a way to include all helpers from app/helpers/**/*.rb in ApplicationController [David Heinemeier Hansson]
|
1187
1245
|
|
1188
1246
|
* Integration tests: introduce methods for other HTTP methods. #6353 [caboose]
|
1189
1247
|
|
@@ -1204,7 +1262,7 @@ Roos]
|
|
1204
1262
|
|
1205
1263
|
* 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.
|
1206
1264
|
|
1207
|
-
* Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [
|
1265
|
+
* Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [David Heinemeier Hansson]. Examples:
|
1208
1266
|
|
1209
1267
|
stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is false =>
|
1210
1268
|
<link href="/stylesheets/style1.css" media="screen" rel="Stylesheet" type="text/css" />
|
@@ -1219,13 +1277,13 @@ Roos]
|
|
1219
1277
|
|
1220
1278
|
* 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]
|
1221
1279
|
|
1222
|
-
* Added default mime type for CSS (Mime::CSS) [
|
1280
|
+
* Added default mime type for CSS (Mime::CSS) [David Heinemeier Hansson]
|
1223
1281
|
|
1224
|
-
* 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. [
|
1282
|
+
* 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. [David Heinemeier Hansson]
|
1225
1283
|
|
1226
|
-
* Added X-Runtime to all responses with the request run time [
|
1284
|
+
* Added X-Runtime to all responses with the request run time [David Heinemeier Hansson]
|
1227
1285
|
|
1228
|
-
* Add Mime::Type convenience methods to check the current mime type. [Rick]
|
1286
|
+
* Add Mime::Type convenience methods to check the current mime type. [Rick Olson]
|
1229
1287
|
|
1230
1288
|
request.format.html? # => true if Mime::HTML
|
1231
1289
|
request.format.jpg? # => true if Mime::JPG
|
@@ -1238,16 +1296,16 @@ Roos]
|
|
1238
1296
|
|
1239
1297
|
* Add a :url_based_filename => true option to ActionController::Streaming::send_file, which allows URL-based filenames. [Thomas Fuchs]
|
1240
1298
|
|
1241
|
-
* Fix that FormTagHelper#submit_tag using :disable_with should trigger the onsubmit handler of its form if available [
|
1299
|
+
* Fix that FormTagHelper#submit_tag using :disable_with should trigger the onsubmit handler of its form if available [David Heinemeier Hansson]
|
1242
1300
|
|
1243
|
-
* Fix #render_file so that TemplateError is called with the correct params and you don't get the WSOD. [Rick]
|
1301
|
+
* Fix #render_file so that TemplateError is called with the correct params and you don't get the WSOD. [Rick Olson]
|
1244
1302
|
|
1245
1303
|
* 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
|
1246
|
-
superclass' view_paths. [Rick]
|
1304
|
+
superclass' view_paths. [Rick Olson]
|
1247
1305
|
|
1248
1306
|
* Allow Controllers to have multiple view_paths instead of a single template_root. Closes #2754 [John Long]
|
1249
1307
|
|
1250
|
-
* Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick]
|
1308
|
+
* Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick Olson]
|
1251
1309
|
|
1252
1310
|
* improve error message for Routing for named routes. Closes #7346 [Rob Sanheim]
|
1253
1311
|
|
@@ -1255,15 +1313,15 @@ superclass' view_paths. [Rick]
|
|
1255
1313
|
|
1256
1314
|
* fix form_for example in ActionController::Resources documentation. Closes #7362 [gnarg]
|
1257
1315
|
|
1258
|
-
* 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 [
|
1316
|
+
* 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 [David Heinemeier Hansson]
|
1259
1317
|
|
1260
|
-
* Added FormBuilder#submit as a delegate for FormTagHelper#submit_tag [
|
1318
|
+
* Added FormBuilder#submit as a delegate for FormTagHelper#submit_tag [David Heinemeier Hansson]
|
1261
1319
|
|
1262
1320
|
* 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]
|
1263
1321
|
|
1264
1322
|
* Change the query parser to map empty GET params to "" rather than nil. Closes #5694. [Nicholas Seckar]
|
1265
1323
|
|
1266
|
-
* date_select and datetime_select take a :default option. #7052 [
|
1324
|
+
* date_select and datetime_select take a :default option. #7052 [Nik Wakelin]
|
1267
1325
|
date_select "post", "written_on", :default => 3.days.from_now
|
1268
1326
|
date_select "credit_card", "bill_due", :default => { :day => 20 }
|
1269
1327
|
|
@@ -1279,7 +1337,7 @@ superclass' view_paths. [Rick]
|
|
1279
1337
|
|
1280
1338
|
* Change session restoration to allow namespaced models to be autoloaded. Closes #6348. [Nicholas Seckar]
|
1281
1339
|
|
1282
|
-
* Fix doubly appearing parameters due to string and symbol mixups. Closes #2551. [
|
1340
|
+
* Fix doubly appearing parameters due to string and symbol mixups. Closes #2551. [Anthony Eden]
|
1283
1341
|
|
1284
1342
|
* Fix overly greedy rescues when loading helpers. Fixes #6268. [Nicholas Seckar]
|
1285
1343
|
|
@@ -1299,7 +1357,7 @@ superclass' view_paths. [Rick]
|
|
1299
1357
|
|
1300
1358
|
* Fix #distance_of_time_in_words to report accurately against the Duration class. #7114 [eventualbuddha]
|
1301
1359
|
|
1302
|
-
* Refactor #form_tag to allow easy extending. [Rick]
|
1360
|
+
* Refactor #form_tag to allow easy extending. [Rick Olson]
|
1303
1361
|
|
1304
1362
|
* Update to Prototype 1.5.0. [Sam Stephenson]
|
1305
1363
|
|
@@ -1311,11 +1369,11 @@ superclass' view_paths. [Rick]
|
|
1311
1369
|
|
1312
1370
|
* Allow exempt_from_layout :rhtml. #6742, #7026 [Dan Manges, Squeegy]
|
1313
1371
|
|
1314
|
-
* Recognize the .txt extension as Mime::TEXT [Rick]
|
1372
|
+
* Recognize the .txt extension as Mime::TEXT [Rick Olson]
|
1315
1373
|
|
1316
1374
|
* Fix parsing of array[] CGI parameters so extra empty values aren't included. #6252 [Nicholas Seckar, aiwilliams, brentrowland]
|
1317
1375
|
|
1318
|
-
* link_to_unless_current works with full URLs as well as paths. #6891 [Jarkko Laine,
|
1376
|
+
* link_to_unless_current works with full URLs as well as paths. #6891 [Jarkko Laine, Manfred Stienstra, idrifter]
|
1319
1377
|
|
1320
1378
|
* Lookup the mime type for #auto_discovery_link_tag in the Mime::Type class. Closes #6941 [Josh Peek]
|
1321
1379
|
|
@@ -1361,7 +1419,7 @@ superclass' view_paths. [Rick]
|
|
1361
1419
|
|
1362
1420
|
* Unrescued ActiveRecord::RecordNotFound responds with 404 instead of 500. [Jeremy Kemper]
|
1363
1421
|
|
1364
|
-
* Improved auto_link to match more valid urls correctly [Tobias
|
1422
|
+
* Improved auto_link to match more valid urls correctly [Tobias Lütke]
|
1365
1423
|
|
1366
1424
|
* Add singleton resources. [Rick Olson]
|
1367
1425
|
|
@@ -1384,7 +1442,7 @@ superclass' view_paths. [Rick]
|
|
1384
1442
|
|
1385
1443
|
* Add :index and @auto_index capability to model driven date/time selects. #847, #2655 [moriq, Doug Fales, Bob Silva]
|
1386
1444
|
|
1387
|
-
* Add :order to datetime_select, select_datetime, and select_date. #1427 [Timothee Peignier,
|
1445
|
+
* Add :order to datetime_select, select_datetime, and select_date. #1427 [Timothee Peignier, Patrick Lenz, Bob Silva]
|
1388
1446
|
|
1389
1447
|
* Added time_select to work with time values in models. Update scaffolding. #2489, #2833 [Justin Palmer, Andre Caum, Bob Silva]
|
1390
1448
|
|
@@ -1394,15 +1452,15 @@ superclass' view_paths. [Rick]
|
|
1394
1452
|
|
1395
1453
|
* Adds :time_separator to select_time and :date_separator to select_datetime. Preserves BC. #3811 [Bob Silva]
|
1396
1454
|
|
1397
|
-
* Added map.root as an alias for map.connect '' [
|
1455
|
+
* Added map.root as an alias for map.connect '' [David Heinemeier Hansson]
|
1398
1456
|
|
1399
|
-
* 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 [
|
1457
|
+
* 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 [David Heinemeier Hansson]. Examples:
|
1400
1458
|
|
1401
1459
|
GET /posts/5.xml | request.format => Mime::XML
|
1402
1460
|
GET /posts/5.xhtml | request.format => Mime::HTML
|
1403
1461
|
GET /posts/5 | request.format => request.accepts.first (usually Mime::HTML for browsers)
|
1404
1462
|
|
1405
|
-
* Added the option for extension aliases to mime type registration [
|
1463
|
+
* Added the option for extension aliases to mime type registration [David Heinemeier Hansson]. Example (already in the default routes):
|
1406
1464
|
|
1407
1465
|
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml )
|
1408
1466
|
|
@@ -1412,9 +1470,9 @@ superclass' view_paths. [Rick]
|
|
1412
1470
|
|
1413
1471
|
* Added CSV to Mime::SET so that respond_to csv will work [Cody Fauser]
|
1414
1472
|
|
1415
|
-
* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [
|
1473
|
+
* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [David Heinemeier Hansson]
|
1416
1474
|
|
1417
|
-
* 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 [
|
1475
|
+
* 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 [David Heinemeier Hansson]
|
1418
1476
|
|
1419
1477
|
* Update Routing to complain when :controller is not specified by a route. Closes #6669. [Nicholas Seckar]
|
1420
1478
|
|
@@ -1463,13 +1521,13 @@ superclass' view_paths. [Rick]
|
|
1463
1521
|
|
1464
1522
|
* Update to latest Prototype, which doesn't serialize disabled form elements, adds clone() to arrays, empty/non-string Element.update() and adds a fixes excessive error reporting in WebKit beta versions [Thomas Fuchs]
|
1465
1523
|
|
1466
|
-
* Deprecate start_form_tag and end_form_tag. Use form_tag / '</form>' from now on. [Rick]
|
1524
|
+
* Deprecate start_form_tag and end_form_tag. Use form_tag / '</form>' from now on. [Rick Olson]
|
1467
1525
|
|
1468
|
-
* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick]
|
1526
|
+
* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick Olson]
|
1469
1527
|
|
1470
|
-
* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick]
|
1528
|
+
* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick Olson]
|
1471
1529
|
|
1472
|
-
* Added block-usage to TagHelper#content_tag [
|
1530
|
+
* Added block-usage to TagHelper#content_tag [David Heinemeier Hansson]. Example:
|
1473
1531
|
|
1474
1532
|
<% content_tag :div, :class => "strong" %>
|
1475
1533
|
Hello world!
|
@@ -1478,13 +1536,13 @@ superclass' view_paths. [Rick]
|
|
1478
1536
|
Will output:
|
1479
1537
|
<div class="strong">Hello world!</div>
|
1480
1538
|
|
1481
|
-
* Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true #6409 [
|
1539
|
+
* Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true #6409 [Bob Silva]
|
1482
1540
|
|
1483
|
-
* Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) #6421 [
|
1541
|
+
* Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) #6421 [Bob Silva]
|
1484
1542
|
|
1485
|
-
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets #6454 [
|
1543
|
+
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets #6454 [Bob Silva/chrismear]
|
1486
1544
|
|
1487
|
-
* Force *_url named routes to show the host in ActionView [Rick]
|
1545
|
+
* Force *_url named routes to show the host in ActionView [Rick Olson]
|
1488
1546
|
|
1489
1547
|
<%= url_for ... %> # no host
|
1490
1548
|
<%= foo_path %> # no host
|
@@ -1494,9 +1552,9 @@ superclass' view_paths. [Rick]
|
|
1494
1552
|
|
1495
1553
|
* Add JavaScriptGenerator#literal for wrapping a string in an object whose #to_json is the string itself. [Sam Stephenson]
|
1496
1554
|
|
1497
|
-
* Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick]
|
1555
|
+
* Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick Olson]
|
1498
1556
|
|
1499
|
-
* Fix double-escaped entities, such as &amp;, &#123;, etc. [Rick]
|
1557
|
+
* Fix double-escaped entities, such as &amp;, &#123;, etc. [Rick Olson]
|
1500
1558
|
|
1501
1559
|
* Fix deprecation warnings when rendering the template error template. [Nicholas Seckar]
|
1502
1560
|
|
@@ -1522,7 +1580,7 @@ superclass' view_paths. [Rick]
|
|
1522
1580
|
|
1523
1581
|
* Rename test assertion to prevent shadowing. Closes #6306. [psross]
|
1524
1582
|
|
1525
|
-
* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [
|
1583
|
+
* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [Philip Hallstrom]
|
1526
1584
|
|
1527
1585
|
* Fixed that FormHelper#radio_button didn't respect an :id being passed in #6266 [evansj]
|
1528
1586
|
|
@@ -1536,7 +1594,7 @@ superclass' view_paths. [Rick]
|
|
1536
1594
|
|
1537
1595
|
Which is needed for dealing with the IE6 DOM when it's not yet fully loaded.
|
1538
1596
|
|
1539
|
-
* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [
|
1597
|
+
* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [Mike Naberezny]
|
1540
1598
|
|
1541
1599
|
* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript #6302 [sven@c3d2.de]
|
1542
1600
|
|
@@ -1577,7 +1635,7 @@ superclass' view_paths. [Rick]
|
|
1577
1635
|
|
1578
1636
|
* Rescue Errno::ECONNRESET to handle an unexpectedly closed socket connection. Improves SCGI reliability. #3368, #6226 [sdsykes, fhanshaw@vesaria.com]
|
1579
1637
|
|
1580
|
-
* Added that respond_to blocks will automatically set the content type to be the same as is requested [
|
1638
|
+
* Added that respond_to blocks will automatically set the content type to be the same as is requested [David Heinemeier Hansson]. Examples:
|
1581
1639
|
|
1582
1640
|
respond_to do |format|
|
1583
1641
|
format.html { render :text => "I'm being sent as text/html" }
|
@@ -1585,9 +1643,9 @@ superclass' view_paths. [Rick]
|
|
1585
1643
|
format.atom { render :text => "I'm being sent as application/xml", :content_type => Mime::XML }
|
1586
1644
|
end
|
1587
1645
|
|
1588
|
-
* Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [
|
1646
|
+
* Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [David Heinemeier Hansson]
|
1589
1647
|
|
1590
|
-
* Added proper getters and setters for content type and charset [
|
1648
|
+
* Added proper getters and setters for content type and charset [David Heinemeier Hansson]. Example of what we used to do:
|
1591
1649
|
|
1592
1650
|
response.headers["Content-Type"] = "application/atom+xml; charset=utf-8"
|
1593
1651
|
|
@@ -1622,7 +1680,7 @@ superclass' view_paths. [Rick]
|
|
1622
1680
|
|
1623
1681
|
* Load helpers in alphabetical order for consistency. Resolve cyclic javascript_helper dependency. #6132, #6178 [choonkeat@gmail.com]
|
1624
1682
|
|
1625
|
-
* Skip params with empty names, such as the &=Save query string from <input type="submit"/>. #2569 [
|
1683
|
+
* Skip params with empty names, such as the &=Save query string from <input type="submit"/>. #2569 [Manfred Stienstra, raphinou@yahoo.com]
|
1626
1684
|
|
1627
1685
|
* Fix assert_tag so that :content => "foo" does not match substrings, but only exact strings. Use :content => /foo/ to match substrings. #2799 [Eric Hodel]
|
1628
1686
|
|
@@ -1632,7 +1690,7 @@ superclass' view_paths. [Rick]
|
|
1632
1690
|
|
1633
1691
|
* Update UrlWriter to support :only_path. [Nicholas Seckar, Dave Thomas]
|
1634
1692
|
|
1635
|
-
* Fixed JavaScriptHelper#link_to_function and JavaScriptHelper#button_to_function to have the script argument be optional [
|
1693
|
+
* Fixed JavaScriptHelper#link_to_function and JavaScriptHelper#button_to_function to have the script argument be optional [David Heinemeier Hansson]. So what used to require a nil, like this:
|
1636
1694
|
|
1637
1695
|
link_to("Hider", nil, :class => "hider_link") { |p| p[:something].hide }
|
1638
1696
|
|
@@ -1653,7 +1711,7 @@ superclass' view_paths. [Rick]
|
|
1653
1711
|
|
1654
1712
|
* Fixed that AssetTagHelper#image_tag and others using compute_public_path should not modify the incoming source argument (closes #5102) [eule@space.ch]
|
1655
1713
|
|
1656
|
-
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that doesn't have an extension [
|
1714
|
+
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that doesn't have an extension [David Heinemeier Hansson]
|
1657
1715
|
|
1658
1716
|
* Fixed FormOptionsHelper#select to respect :selected value #5813
|
1659
1717
|
|
@@ -1663,16 +1721,16 @@ superclass' view_paths. [Rick]
|
|
1663
1721
|
|
1664
1722
|
* Improved resolution of DateHelper#distance_of_time_in_words for better precision #5994 [Bob Silva]
|
1665
1723
|
|
1666
|
-
* Changed that uncaught exceptions raised any where in the application will cause RAILS_ROOT/public/500.html to be read and shown instead of just the static "Application error (Rails)" [
|
1724
|
+
* Changed that uncaught exceptions raised any where in the application will cause RAILS_ROOT/public/500.html to be read and shown instead of just the static "Application error (Rails)" [David Heinemeier Hansson]
|
1667
1725
|
|
1668
1726
|
* Integration tests: thoroughly test ActionController::Integration::Session. #6022 [Kevin Clark]
|
1669
1727
|
(tests skipped unless you `gem install mocha`)
|
1670
1728
|
|
1671
|
-
* Added deprecation language for pagination which will become a plugin by Rails 2.0 [
|
1729
|
+
* Added deprecation language for pagination which will become a plugin by Rails 2.0 [David Heinemeier Hansson]
|
1672
1730
|
|
1673
|
-
* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [
|
1731
|
+
* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [David Heinemeier Hansson]
|
1674
1732
|
|
1675
|
-
* Deprecated all of ActionController::Dependencies. All dependency loading is now handled from Active Support [
|
1733
|
+
* Deprecated all of ActionController::Dependencies. All dependency loading is now handled from Active Support [David Heinemeier Hansson]
|
1676
1734
|
|
1677
1735
|
* Added assert_select* for CSS selector-based testing (deprecates assert_tag) #5936 [assaf.arkin@gmail.com]
|
1678
1736
|
|
@@ -1690,7 +1748,7 @@ superclass' view_paths. [Rick]
|
|
1690
1748
|
|
1691
1749
|
* Add routing tests to assert that RoutingError is raised when conditions aren't met. Closes #6016 [Nathan Witmer]
|
1692
1750
|
|
1693
|
-
* Deprecation: update docs. #5998 [
|
1751
|
+
* Deprecation: update docs. #5998 [Jakob Skjerning, Kevin Clark]
|
1694
1752
|
|
1695
1753
|
* Make auto_link parse a greater subset of valid url formats. [Jamis Buck]
|
1696
1754
|
|
@@ -1700,15 +1758,15 @@ superclass' view_paths. [Rick]
|
|
1700
1758
|
|
1701
1759
|
* Fix send_data documentation typo. #5982 [brad@madriska.com]
|
1702
1760
|
|
1703
|
-
* Switch to using FormEncodedPairParser for parsing request parameters. [Nicholas Seckar,
|
1761
|
+
* Switch to using FormEncodedPairParser for parsing request parameters. [Nicholas Seckar, David Heinemeier Hansson]
|
1704
1762
|
|
1705
|
-
* respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. [Tobias
|
1763
|
+
* respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. [Tobias Lütke]
|
1706
1764
|
|
1707
1765
|
* Deprecation: test deprecated instance vars in partials. [Jeremy Kemper]
|
1708
1766
|
|
1709
1767
|
* Add UrlWriter to allow writing urls from Mailers and scripts. [Nicholas Seckar]
|
1710
1768
|
|
1711
|
-
* Clean up and run the Active Record integration tests by default. #5854 [
|
1769
|
+
* Clean up and run the Active Record integration tests by default. #5854 [Kevin Clark, Jeremy Kemper]
|
1712
1770
|
|
1713
1771
|
* Correct example in cookies docs. #5832 [jessemerriman@warpmail.net]
|
1714
1772
|
|
@@ -1736,7 +1794,7 @@ superclass' view_paths. [Rick]
|
|
1736
1794
|
|
1737
1795
|
* Deprecation! @params, @session, @flash will be removed after 1.2. Use the corresponding instance methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly. [Jeremy Kemper]
|
1738
1796
|
|
1739
|
-
* Make Routing noisy when an anchor regexp is assigned to a segment. #5674 [
|
1797
|
+
* Make Routing noisy when an anchor regexp is assigned to a segment. #5674 [François Beausoleil]
|
1740
1798
|
|
1741
1799
|
* Added months and years to the resolution of DateHelper#distance_of_time_in_words, such that "60 days ago" becomes "2 months ago" #5611 [pjhyett@gmail.com]
|
1742
1800
|
|
@@ -1756,7 +1814,7 @@ superclass' view_paths. [Rick]
|
|
1756
1814
|
|
1757
1815
|
* Fixed the new_#{resource}_url route and added named route tests for Simply Restful. [Rick Olson]
|
1758
1816
|
|
1759
|
-
* Added map.resources from the Simply Restful plugin [
|
1817
|
+
* Added map.resources from the Simply Restful plugin [David Heinemeier Hansson]. Examples (the API has changed to use plurals!):
|
1760
1818
|
|
1761
1819
|
map.resources :messages
|
1762
1820
|
map.resources :messages, :comments
|
@@ -1764,13 +1822,13 @@ superclass' view_paths. [Rick]
|
|
1764
1822
|
|
1765
1823
|
* Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
|
1766
1824
|
|
1767
|
-
* TestRequest#reset_session should restore a TestSession, not a hash [
|
1825
|
+
* TestRequest#reset_session should restore a TestSession, not a hash [Michael Koziarski]
|
1768
1826
|
|
1769
1827
|
* Don't search a load-path of '.' for controller files [Jamis Buck]
|
1770
1828
|
|
1771
1829
|
* Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar]
|
1772
1830
|
|
1773
|
-
* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow
|
1831
|
+
* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow]
|
1774
1832
|
|
1775
1833
|
* Allow form_for and fields_for to work with indexed form inputs. [Jeremy Kemper, Matt Lyon]
|
1776
1834
|
|
@@ -1779,13 +1837,13 @@ superclass' view_paths. [Rick]
|
|
1779
1837
|
|
1780
1838
|
* Remove leak in development mode by replacing define_method with module_eval. [Nicholas Seckar]
|
1781
1839
|
|
1782
|
-
* Provide support for decimal columns to form helpers. Closes #5672. [
|
1840
|
+
* Provide support for decimal columns to form helpers. Closes #5672. [Dave Thomas]
|
1783
1841
|
|
1784
1842
|
* Update documentation for erb trim syntax. #5651 [matt@mattmargolis.net]
|
1785
1843
|
|
1786
1844
|
* Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. #3586 [olivier_ansaldi@yahoo.com, sebastien@goetzilla.info]
|
1787
1845
|
|
1788
|
-
* Reset @html_document between requests so assert_tag works. #4810 [
|
1846
|
+
* Reset @html_document between requests so assert_tag works. #4810 [Jarkko Laine, easleydp@gmail.com]
|
1789
1847
|
|
1790
1848
|
* Update render :partial documentation. #5646 [matt@mattmargolis.net]
|
1791
1849
|
|
@@ -1795,21 +1853,21 @@ superclass' view_paths. [Rick]
|
|
1795
1853
|
|
1796
1854
|
* Fixed that real files and symlinks should be treated the same when compiling templates #5438 [zachary@panandscan.com]
|
1797
1855
|
|
1798
|
-
* Fixed that the flash should be reset when reset_session is called #5584 [
|
1856
|
+
* Fixed that the flash should be reset when reset_session is called #5584 [Shugo Maeda]
|
1799
1857
|
|
1800
1858
|
* Added special case for "1 Byte" in NumberHelper#number_to_human_size #5593 [murpyh@rubychan.de]
|
1801
1859
|
|
1802
|
-
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [
|
1860
|
+
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [David Heinemeier Hansson]
|
1803
1861
|
|
1804
1862
|
* Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path. [Nicholas Seckar]
|
1805
1863
|
|
1806
1864
|
* Avoid naming collision among compiled view methods. [Jeremy Kemper]
|
1807
1865
|
|
1808
|
-
* Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [
|
1866
|
+
* Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [Mislav Marohnić]
|
1809
1867
|
|
1810
1868
|
* Determine the correct template_root for deeply nested components. #2841 [s.brink@web.de]
|
1811
1869
|
|
1812
|
-
* Fix that routes with *path segments in the recall can generate URLs. [Rick]
|
1870
|
+
* Fix that routes with *path segments in the recall can generate URLs. [Rick Olson]
|
1813
1871
|
|
1814
1872
|
* Fix strip_links so that it doesn't hang on multiline <acronym> tags [Jamis Buck]
|
1815
1873
|
|
@@ -1827,11 +1885,11 @@ superclass' view_paths. [Rick]
|
|
1827
1885
|
|
1828
1886
|
* Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). #210 [mklame@atxeu.com, matthew@walker.wattle.id.au]
|
1829
1887
|
|
1830
|
-
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [
|
1888
|
+
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [David Heinemeier Hansson]
|
1831
1889
|
|
1832
|
-
* Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [
|
1890
|
+
* Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [David Heinemeier Hansson]. Example: Mime::Type.register("image/gif", :gif)
|
1833
1891
|
|
1834
|
-
* Added support for Mime objects in render :content_type option [
|
1892
|
+
* Added support for Mime objects in render :content_type option [David Heinemeier Hansson]. Example: render :text => some_atom, :content_type => Mime::ATOM
|
1835
1893
|
|
1836
1894
|
* Add :status option to send_data and send_file. Defaults to '200 OK'. #5243 [Manfred Stienstra <m.stienstra@fngtps.com>]
|
1837
1895
|
|
@@ -1845,7 +1903,7 @@ superclass' view_paths. [Rick]
|
|
1845
1903
|
|
1846
1904
|
* Accept multipart PUT parameters. #5235 [guy.naor@famundo.com]
|
1847
1905
|
|
1848
|
-
* Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [
|
1906
|
+
* Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [David Heinemeier Hansson]. Example:
|
1849
1907
|
|
1850
1908
|
class WeblogController < ActionController::Base
|
1851
1909
|
def index
|
@@ -1878,13 +1936,13 @@ superclass' view_paths. [Rick]
|
|
1878
1936
|
|
1879
1937
|
All this relies on the fact that you have a route that includes .:format.
|
1880
1938
|
|
1881
|
-
* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [
|
1939
|
+
* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [David Heinemeier Hansson]
|
1882
1940
|
|
1883
|
-
* Added :method option to UrlHelper#link_to, which allows for using other verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [
|
1941
|
+
* Added :method option to UrlHelper#link_to, which allows for using other verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [David Heinemeier Hansson]
|
1884
1942
|
|
1885
1943
|
* follow_redirect doesn't complain about being redirected to the same controller. #5153 [dymo@mk.ukrtelecom.ua]
|
1886
1944
|
|
1887
|
-
* Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark
|
1945
|
+
* Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark]
|
1888
1946
|
|
1889
1947
|
* Fix NoMethodError when parsing params like &&. [Adam Greenfield]
|
1890
1948
|
|
@@ -1894,7 +1952,7 @@ superclass' view_paths. [Rick]
|
|
1894
1952
|
|
1895
1953
|
* Excise ingrown code from FormOptionsHelper#options_for_select. #5008 [anonymous]
|
1896
1954
|
|
1897
|
-
* Small fix in routing to allow dynamic routes (broken after [4242]) [Rick]
|
1955
|
+
* Small fix in routing to allow dynamic routes (broken after [4242]) [Rick Olson]
|
1898
1956
|
|
1899
1957
|
map.connect '*path', :controller => 'files', :action => 'show'
|
1900
1958
|
|
@@ -1906,7 +1964,7 @@ superclass' view_paths. [Rick]
|
|
1906
1964
|
|
1907
1965
|
* Documentation fix: integration test scripts don't require integration_test. Closes #4914. [Frederick Ros <sl33p3r@free.fr>]
|
1908
1966
|
|
1909
|
-
* ActionController::Base Summary documentation rewrite. Closes #4900. [
|
1967
|
+
* ActionController::Base Summary documentation rewrite. Closes #4900. [Kevin Clark]
|
1910
1968
|
|
1911
1969
|
* Fix text_helper.rb documentation rendering. Closes #4725. [Frederick Ros]
|
1912
1970
|
|
@@ -1918,9 +1976,9 @@ superclass' view_paths. [Rick]
|
|
1918
1976
|
|
1919
1977
|
* Enhance documentation for setting headers in integration tests. Skip auto HTTP prepending when its already there. Closes #4079. [Rick Olson]
|
1920
1978
|
|
1921
|
-
* Documentation for AbstractRequest. Closes #4895. [
|
1979
|
+
* Documentation for AbstractRequest. Closes #4895. [Kevin Clark]
|
1922
1980
|
|
1923
|
-
* Refactor various InstanceTag instance method to class methods. Closes #4800. [
|
1981
|
+
* Refactor various InstanceTag instance method to class methods. Closes #4800. [Stefan Kaes]
|
1924
1982
|
|
1925
1983
|
* Remove all remaining references to @params in the documentation. [Marcel Molina Jr.]
|
1926
1984
|
|
@@ -1928,25 +1986,25 @@ superclass' view_paths. [Rick]
|
|
1928
1986
|
|
1929
1987
|
* Update layout and content_for documentation to use yield rather than magic @content_for instance variables. [Marcel Molina Jr.]
|
1930
1988
|
|
1931
|
-
* Fix assert_redirected_to tests according to real-world usage. Also, don't fail if you add an extra :controller option: [Rick]
|
1989
|
+
* Fix assert_redirected_to tests according to real-world usage. Also, don't fail if you add an extra :controller option: [Rick Olson]
|
1932
1990
|
|
1933
1991
|
redirect_to :action => 'new'
|
1934
1992
|
assert_redirected_to :controller => 'monkeys', :action => 'new'
|
1935
1993
|
|
1936
|
-
* Cache CgiRequest#request_parameters so that multiple calls don't re-parse multipart data. [Rick]
|
1994
|
+
* Cache CgiRequest#request_parameters so that multiple calls don't re-parse multipart data. [Rick Olson]
|
1937
1995
|
|
1938
|
-
* Diff compared routing options. Allow #assert_recognizes to take a second arg as a hash to specify optional request method [Rick]
|
1996
|
+
* Diff compared routing options. Allow #assert_recognizes to take a second arg as a hash to specify optional request method [Rick Olson]
|
1939
1997
|
|
1940
1998
|
assert_recognizes({:controller => 'users', :action => 'index'}, 'users')
|
1941
1999
|
assert_recognizes({:controller => 'users', :action => 'create'}, {:path => 'users', :method => :post})
|
1942
2000
|
|
1943
|
-
* Diff compared options with #assert_redirected_to [Rick]
|
2001
|
+
* Diff compared options with #assert_redirected_to [Rick Olson]
|
1944
2002
|
|
1945
2003
|
* Add support in routes for semicolon delimited "subpaths", like /books/:id;:action [Jamis Buck]
|
1946
2004
|
|
1947
2005
|
* Change link_to_function and button_to_function to (optionally) take an update_page block instead of a JavaScript string. Closes #4804. [zraii@comcast.net, Sam Stephenson]
|
1948
2006
|
|
1949
|
-
* Fixed that remote_form_for can leave out the object parameter and default to the instance variable of the object_name, just like form_for [
|
2007
|
+
* Fixed that remote_form_for can leave out the object parameter and default to the instance variable of the object_name, just like form_for [David Heinemeier Hansson]
|
1950
2008
|
|
1951
2009
|
* Modify routing so that you can say :require => { :method => :post } for a route, and the route will never be selected unless the request method is POST. Only works for route recognition, not for route generation. [Jamis Buck]
|
1952
2010
|
|
@@ -1962,14 +2020,14 @@ superclass' view_paths. [Rick]
|
|
1962
2020
|
|
1963
2021
|
* Apply [5709] to stable.
|
1964
2022
|
|
1965
|
-
* session_enabled? works with session :off. #6680 [
|
2023
|
+
* session_enabled? works with session :off. #6680 [Jonathan del Strother]
|
1966
2024
|
|
1967
2025
|
* Performance: patch cgi/session to require digest/md5 once rather than per #create_new_id. [Stefan Kaes]
|
1968
2026
|
|
1969
2027
|
|
1970
2028
|
*1.13.2* (February 5th, 2007)
|
1971
2029
|
|
1972
|
-
* Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick]
|
2030
|
+
* Add much-needed html-scanner tests. Fixed CDATA parsing bug. [Rick Olson]
|
1973
2031
|
|
1974
2032
|
* improve error message for Routing for named routes. [Rob Sanheim]
|
1975
2033
|
|
@@ -1991,7 +2049,7 @@ superclass' view_paths. [Rick]
|
|
1991
2049
|
|
1992
2050
|
* Make TextHelper::auto_link recognize URLs with colons in path correctly, fixes #7268. [imajes]
|
1993
2051
|
|
1994
|
-
* Improved auto_link to match more valid urls correctly [Tobias
|
2052
|
+
* Improved auto_link to match more valid urls correctly [Tobias Lütke]
|
1995
2053
|
|
1996
2054
|
|
1997
2055
|
*1.13.1* (January 18th, 2007)
|
@@ -2007,11 +2065,11 @@ superclass' view_paths. [Rick]
|
|
2007
2065
|
|
2008
2066
|
* Update to Prototype 1.5.0. [Sam Stephenson]
|
2009
2067
|
|
2010
|
-
* Allow exempt_from_layout :rhtml. #6742, #7026 [
|
2068
|
+
* Allow exempt_from_layout :rhtml. #6742, #7026 [Dan Manges, Squeegy]
|
2011
2069
|
|
2012
2070
|
* Fix parsing of array[] CGI parameters so extra empty values aren't included. #6252 [Nicholas Seckar, aiwilliams, brentrowland]
|
2013
2071
|
|
2014
|
-
* link_to_unless_current works with full URLs as well as paths. #6891 [Jarkko Laine,
|
2072
|
+
* link_to_unless_current works with full URLs as well as paths. #6891 [Jarkko Laine, Manfred Stienstra, idrifter]
|
2015
2073
|
|
2016
2074
|
* Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy]
|
2017
2075
|
|
@@ -2053,7 +2111,7 @@ superclass' view_paths. [Rick]
|
|
2053
2111
|
|
2054
2112
|
* Add :index and @auto_index capability to model driven date/time selects. #847, #2655 [moriq, Doug Fales, Bob Silva]
|
2055
2113
|
|
2056
|
-
* Add :order to datetime_select, select_datetime, and select_date. #1427 [Timothee Peignier,
|
2114
|
+
* Add :order to datetime_select, select_datetime, and select_date. #1427 [Timothee Peignier, Patrick Lenz, Bob Silva]
|
2057
2115
|
|
2058
2116
|
* Added time_select to work with time values in models. Update scaffolding. #2489, #2833 [Justin Palmer, Andre Caum, Bob Silva]
|
2059
2117
|
|
@@ -2065,9 +2123,9 @@ superclass' view_paths. [Rick]
|
|
2065
2123
|
|
2066
2124
|
* @response.redirect_url works with 201 Created responses: just return headers['Location'] rather than checking the response status. [Jeremy Kemper]
|
2067
2125
|
|
2068
|
-
* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [
|
2126
|
+
* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [David Heinemeier Hansson]
|
2069
2127
|
|
2070
|
-
* 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 [
|
2128
|
+
* 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 [David Heinemeier Hansson]
|
2071
2129
|
|
2072
2130
|
|
2073
2131
|
*1.13.0 RC1* (r5619, November 22nd, 2006)
|
@@ -2107,13 +2165,13 @@ superclass' view_paths. [Rick]
|
|
2107
2165
|
|
2108
2166
|
* Deprecate expire_matched_fragments. Use expire_fragment instead. #6535 [Bob Silva]
|
2109
2167
|
|
2110
|
-
* Deprecate start_form_tag and end_form_tag. Use form_tag / '</form>' from now on. [Rick]
|
2168
|
+
* Deprecate start_form_tag and end_form_tag. Use form_tag / '</form>' from now on. [Rick Olson]
|
2111
2169
|
|
2112
|
-
* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick]
|
2170
|
+
* Added block-usage to PrototypeHelper#form_remote_tag, document block-usage of FormTagHelper#form_tag [Rick Olson]
|
2113
2171
|
|
2114
|
-
* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick]
|
2172
|
+
* Add a 0 margin/padding div around the hidden _method input tag that form_tag outputs. [Rick Olson]
|
2115
2173
|
|
2116
|
-
* Added block-usage to TagHelper#content_tag [
|
2174
|
+
* Added block-usage to TagHelper#content_tag [David Heinemeier Hansson]. Example:
|
2117
2175
|
|
2118
2176
|
<% content_tag :div, :class => "strong" %>
|
2119
2177
|
Hello world!
|
@@ -2122,13 +2180,13 @@ superclass' view_paths. [Rick]
|
|
2122
2180
|
Will output:
|
2123
2181
|
<div class="strong">Hello world!</div>
|
2124
2182
|
|
2125
|
-
* Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true #6409 [
|
2183
|
+
* Deprecated UrlHelper#link_to_image and UrlHelper#link_to :post => true #6409 [Bob Silva]
|
2126
2184
|
|
2127
|
-
* Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) #6421 [
|
2185
|
+
* Upgraded NumberHelper with number_to_phone support international formats to comply with ITU E.123 by supporting area codes with less than 3 digits, added precision argument to number_to_human_size (defaults to 1) #6421 [Bob Silva]
|
2128
2186
|
|
2129
|
-
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets #6454 [
|
2187
|
+
* Fixed that setting RAILS_ASSET_ID to "" should not add a trailing slash after assets #6454 [Bob Silva/chrismear]
|
2130
2188
|
|
2131
|
-
* Force *_url named routes to show the host in ActionView [Rick]
|
2189
|
+
* Force *_url named routes to show the host in ActionView [Rick Olson]
|
2132
2190
|
|
2133
2191
|
<%= url_for ... %> # no host
|
2134
2192
|
<%= foo_path %> # no host
|
@@ -2138,9 +2196,9 @@ superclass' view_paths. [Rick]
|
|
2138
2196
|
|
2139
2197
|
* Add JavaScriptGenerator#literal for wrapping a string in an object whose #to_json is the string itself. [Sam Stephenson]
|
2140
2198
|
|
2141
|
-
* Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick]
|
2199
|
+
* Add <%= escape_once html %> to escape html while leaving any currently escaped entities alone. Fix button_to double-escaping issue. [Rick Olson]
|
2142
2200
|
|
2143
|
-
* Fix double-escaped entities, such as &amp;, &#123;, etc. [Rick]
|
2201
|
+
* Fix double-escaped entities, such as &amp;, &#123;, etc. [Rick Olson]
|
2144
2202
|
|
2145
2203
|
* Fix routing to correctly determine when generation fails. Closes #6300. [psross].
|
2146
2204
|
|
@@ -2160,7 +2218,7 @@ superclass' view_paths. [Rick]
|
|
2160
2218
|
|
2161
2219
|
* Rename test assertion to prevent shadowing. Closes #6306. [psross]
|
2162
2220
|
|
2163
|
-
* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [
|
2221
|
+
* Fixed that NumberHelper#number_to_delimiter should respect precision of higher than two digits #6231 [Philip Hallstrom]
|
2164
2222
|
|
2165
2223
|
* Fixed that FormHelper#radio_button didn't respect an :id being passed in #6266 [evansj]
|
2166
2224
|
|
@@ -2174,7 +2232,7 @@ superclass' view_paths. [Rick]
|
|
2174
2232
|
|
2175
2233
|
Which is needed for dealing with the IE6 DOM when it's not yet fully loaded.
|
2176
2234
|
|
2177
|
-
* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [
|
2235
|
+
* Fixed that rescue template path shouldn't be hardcoded, then it's easier to hook in your own #6295 [Mike Naberezny]
|
2178
2236
|
|
2179
2237
|
* Fixed escaping of backslashes in JavaScriptHelper#escape_javascript #6302 [sven@c3d2.de]
|
2180
2238
|
|
@@ -2213,7 +2271,7 @@ superclass' view_paths. [Rick]
|
|
2213
2271
|
|
2214
2272
|
* Rescue Errno::ECONNRESET to handle an unexpectedly closed socket connection. Improves SCGI reliability. #3368, #6226 [sdsykes, fhanshaw@vesaria.com]
|
2215
2273
|
|
2216
|
-
* Added that respond_to blocks will automatically set the content type to be the same as is requested [
|
2274
|
+
* Added that respond_to blocks will automatically set the content type to be the same as is requested [David Heinemeier Hansson]. Examples:
|
2217
2275
|
|
2218
2276
|
respond_to do |format|
|
2219
2277
|
format.html { render :text => "I'm being sent as text/html" }
|
@@ -2221,9 +2279,9 @@ superclass' view_paths. [Rick]
|
|
2221
2279
|
format.atom { render :text => "I'm being sent as application/xml", :content_type => Mime::XML }
|
2222
2280
|
end
|
2223
2281
|
|
2224
|
-
* Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [
|
2282
|
+
* Added utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [David Heinemeier Hansson]
|
2225
2283
|
|
2226
|
-
* Added proper getters and setters for content type and charset [
|
2284
|
+
* Added proper getters and setters for content type and charset [David Heinemeier Hansson]. Example of what we used to do:
|
2227
2285
|
|
2228
2286
|
response.headers["Content-Type"] = "application/atom+xml; charset=utf-8"
|
2229
2287
|
|
@@ -2252,7 +2310,7 @@ superclass' view_paths. [Rick]
|
|
2252
2310
|
|
2253
2311
|
* Load helpers in alphabetical order for consistency. Resolve cyclic javascript_helper dependency. #6132, #6178 [choonkeat@gmail.com]
|
2254
2312
|
|
2255
|
-
* Skip params with empty names, such as the &=Save query string from <input type="submit"/>. #2569 [
|
2313
|
+
* Skip params with empty names, such as the &=Save query string from <input type="submit"/>. #2569 [Manfred Stienstra, raphinou@yahoo.com]
|
2256
2314
|
|
2257
2315
|
* Fix assert_tag so that :content => "foo" does not match substrings, but only exact strings. Use :content => /foo/ to match substrings. #2799 [Eric Hodel]
|
2258
2316
|
|
@@ -2260,7 +2318,7 @@ superclass' view_paths. [Rick]
|
|
2260
2318
|
|
2261
2319
|
* Update UrlWriter to support :only_path. [Nicholas Seckar, Dave Thomas]
|
2262
2320
|
|
2263
|
-
* Fixed JavaScriptHelper#link_to_function and JavaScriptHelper#button_to_function to have the script argument be optional [
|
2321
|
+
* Fixed JavaScriptHelper#link_to_function and JavaScriptHelper#button_to_function to have the script argument be optional [David Heinemeier Hansson]. So what used to require a nil, like this:
|
2264
2322
|
|
2265
2323
|
link_to("Hider", nil, :class => "hider_link") { |p| p[:something].hide }
|
2266
2324
|
|
@@ -2277,7 +2335,7 @@ superclass' view_paths. [Rick]
|
|
2277
2335
|
|
2278
2336
|
* Fixed that AssetTagHelper#image_tag and others using compute_public_path should not modify the incoming source argument (closes #5102) [eule@space.ch]
|
2279
2337
|
|
2280
|
-
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that doesn't have an extension [
|
2338
|
+
* Deprecated the auto-appending of .png to AssetTagHelper#image_tag calls that doesn't have an extension [David Heinemeier Hansson]
|
2281
2339
|
|
2282
2340
|
* Fixed FormOptionsHelper#select to respect :selected value #5813
|
2283
2341
|
|
@@ -2287,13 +2345,13 @@ superclass' view_paths. [Rick]
|
|
2287
2345
|
|
2288
2346
|
* Improved resolution of DateHelper#distance_of_time_in_words for better precision #5994 [Bob Silva]
|
2289
2347
|
|
2290
|
-
* Changed that uncaught exceptions raised any where in the application will cause RAILS_ROOT/public/500.html to be read and shown instead of just the static "Application error (Rails)" [
|
2348
|
+
* Changed that uncaught exceptions raised any where in the application will cause RAILS_ROOT/public/500.html to be read and shown instead of just the static "Application error (Rails)" [David Heinemeier Hansson]
|
2291
2349
|
|
2292
|
-
* Added deprecation language for pagination which will become a plugin by Rails 2.0 [
|
2350
|
+
* Added deprecation language for pagination which will become a plugin by Rails 2.0 [David Heinemeier Hansson]
|
2293
2351
|
|
2294
|
-
* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [
|
2352
|
+
* Added deprecation language for in_place_editor and auto_complete_field that both pieces will become plugins by Rails 2.0 [David Heinemeier Hansson]
|
2295
2353
|
|
2296
|
-
* Deprecated all of ActionController::Dependencies. All dependency loading is now handled from Active Support [
|
2354
|
+
* Deprecated all of ActionController::Dependencies. All dependency loading is now handled from Active Support [David Heinemeier Hansson]
|
2297
2355
|
|
2298
2356
|
* Added assert_select* for CSS selector-based testing (deprecates assert_tag) #5936 [assaf.arkin@gmail.com]
|
2299
2357
|
|
@@ -2313,9 +2371,9 @@ superclass' view_paths. [Rick]
|
|
2313
2371
|
|
2314
2372
|
* Integration tests: headers beginning with X aren't excluded from the HTTP_ prefix, so X-Requested-With becomes HTTP_X_REQUESTED_WITH as expected. [Mike Clark]
|
2315
2373
|
|
2316
|
-
* Switch to using FormEncodedPairParser for parsing request parameters. [Nicholas Seckar,
|
2374
|
+
* Switch to using FormEncodedPairParser for parsing request parameters. [Nicholas Seckar, David Heinemeier Hansson]
|
2317
2375
|
|
2318
|
-
* respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. [Tobias
|
2376
|
+
* respond_to .html now always renders #{action_name}.rhtml so that registered custom template handlers do not override it in priority. Custom mime types require a block and throw proper error now. [Tobias Lütke]
|
2319
2377
|
|
2320
2378
|
* Deprecation: test deprecated instance vars in partials. [Jeremy Kemper]
|
2321
2379
|
|
@@ -2341,7 +2399,7 @@ superclass' view_paths. [Rick]
|
|
2341
2399
|
|
2342
2400
|
* Deprecation! @params, @session, @flash will be removed after 1.2. Use the corresponding instance methods instead. You'll get printed warnings during tests and logged warnings in dev mode when you access either instance variable directly. [Jeremy Kemper]
|
2343
2401
|
|
2344
|
-
* Make Routing noisy when an anchor regexp is assigned to a segment. #5674 [
|
2402
|
+
* Make Routing noisy when an anchor regexp is assigned to a segment. #5674 [François Beausoleil]
|
2345
2403
|
|
2346
2404
|
* Added months and years to the resolution of DateHelper#distance_of_time_in_words, such that "60 days ago" becomes "2 months ago" #5611 [pjhyett@gmail.com]
|
2347
2405
|
|
@@ -2355,7 +2413,7 @@ superclass' view_paths. [Rick]
|
|
2355
2413
|
|
2356
2414
|
* Fixed the new_#{resource}_url route and added named route tests for Simply Restful. [Rick Olson]
|
2357
2415
|
|
2358
|
-
* Added map.resources from the Simply Restful plugin [
|
2416
|
+
* Added map.resources from the Simply Restful plugin [David Heinemeier Hansson]. Examples (the API has changed to use plurals!):
|
2359
2417
|
|
2360
2418
|
map.resources :messages
|
2361
2419
|
map.resources :messages, :comments
|
@@ -2363,13 +2421,13 @@ superclass' view_paths. [Rick]
|
|
2363
2421
|
|
2364
2422
|
* Fixed that integration simulation of XHRs should set Accept header as well [Edward Frederick]
|
2365
2423
|
|
2366
|
-
* TestRequest#reset_session should restore a TestSession, not a hash [
|
2424
|
+
* TestRequest#reset_session should restore a TestSession, not a hash [Michael Koziarski]
|
2367
2425
|
|
2368
2426
|
* Don't search a load-path of '.' for controller files [Jamis Buck]
|
2369
2427
|
|
2370
2428
|
* Update integration.rb to require test_process explicitly instead of via Dependencies. [Nicholas Seckar]
|
2371
2429
|
|
2372
|
-
* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow
|
2430
|
+
* Fixed that you can still access the flash after the flash has been reset in reset_session. Closes #5584 [lmarlow]
|
2373
2431
|
|
2374
2432
|
* Allow form_for and fields_for to work with indexed form inputs. [Jeremy Kemper, Matt Lyon]
|
2375
2433
|
|
@@ -2378,11 +2436,11 @@ superclass' view_paths. [Rick]
|
|
2378
2436
|
|
2379
2437
|
* Remove leak in development mode by replacing define_method with module_eval. [Nicholas Seckar]
|
2380
2438
|
|
2381
|
-
* Provide support for decimal columns to form helpers. Closes #5672. [
|
2439
|
+
* Provide support for decimal columns to form helpers. Closes #5672. [Dave Thomas]
|
2382
2440
|
|
2383
2441
|
* Pass :id => nil or :class => nil to error_messages_for to supress that html attribute. #3586 [olivier_ansaldi@yahoo.com, sebastien@goetzilla.info]
|
2384
2442
|
|
2385
|
-
* Reset @html_document between requests so assert_tag works. #4810 [
|
2443
|
+
* Reset @html_document between requests so assert_tag works. #4810 [Jarkko Laine, easleydp@gmail.com]
|
2386
2444
|
|
2387
2445
|
* Integration tests behave well with render_component. #4632 [edward.frederick@revolution.com, dev.rubyonrails@maxdunn.com]
|
2388
2446
|
|
@@ -2390,21 +2448,21 @@ superclass' view_paths. [Rick]
|
|
2390
2448
|
|
2391
2449
|
* Fixed that real files and symlinks should be treated the same when compiling templates #5438 [zachary@panandscan.com]
|
2392
2450
|
|
2393
|
-
* Fixed that the flash should be reset when reset_session is called #5584 [
|
2451
|
+
* Fixed that the flash should be reset when reset_session is called #5584 [Shugo Maeda]
|
2394
2452
|
|
2395
2453
|
* Added special case for "1 Byte" in NumberHelper#number_to_human_size #5593 [murpyh@rubychan.de]
|
2396
2454
|
|
2397
|
-
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [
|
2455
|
+
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [David Heinemeier Hansson]
|
2398
2456
|
|
2399
2457
|
* Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path. [Nicholas Seckar]
|
2400
2458
|
|
2401
2459
|
* Avoid naming collision among compiled view methods. [Jeremy Kemper]
|
2402
2460
|
|
2403
|
-
* Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [
|
2461
|
+
* Fix CGI extensions when they expect string but get nil in Windows. Closes #5276 [Mislav Marohnić]
|
2404
2462
|
|
2405
2463
|
* Determine the correct template_root for deeply nested components. #2841 [s.brink@web.de]
|
2406
2464
|
|
2407
|
-
* Fix that routes with *path segments in the recall can generate URLs. [Rick]
|
2465
|
+
* Fix that routes with *path segments in the recall can generate URLs. [Rick Olson]
|
2408
2466
|
|
2409
2467
|
* Fix strip_links so that it doesn't hang on multiline <acronym> tags [Jamis Buck]
|
2410
2468
|
|
@@ -2420,11 +2478,11 @@ superclass' view_paths. [Rick]
|
|
2420
2478
|
|
2421
2479
|
* Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). #210 [mklame@atxeu.com, matthew@walker.wattle.id.au]
|
2422
2480
|
|
2423
|
-
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [
|
2481
|
+
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [David Heinemeier Hansson]
|
2424
2482
|
|
2425
|
-
* Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [
|
2483
|
+
* Added Mime::Type.register(string, symbol, synonyms = []) for adding new custom mime types [David Heinemeier Hansson]. Example: Mime::Type.register("image/gif", :gif)
|
2426
2484
|
|
2427
|
-
* Added support for Mime objects in render :content_type option [
|
2485
|
+
* Added support for Mime objects in render :content_type option [David Heinemeier Hansson]. Example: render :text => some_atom, :content_type => Mime::ATOM
|
2428
2486
|
|
2429
2487
|
* Add :status option to send_data and send_file. Defaults to '200 OK'. #5243 [Manfred Stienstra <m.stienstra@fngtps.com>]
|
2430
2488
|
|
@@ -2438,7 +2496,7 @@ superclass' view_paths. [Rick]
|
|
2438
2496
|
|
2439
2497
|
* Accept multipart PUT parameters. #5235 [guy.naor@famundo.com]
|
2440
2498
|
|
2441
|
-
* Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [
|
2499
|
+
* Added interrogation of params[:format] to determine Accept type. If :format is specified and matches a declared extension, like "rss" or "xml", that mime type will be put in front of the accept handler. This means you can link to the same action from different extensions and use that fact to determine output [David Heinemeier Hansson]. Example:
|
2442
2500
|
|
2443
2501
|
class WeblogController < ActionController::Base
|
2444
2502
|
def index
|
@@ -2471,13 +2529,13 @@ superclass' view_paths. [Rick]
|
|
2471
2529
|
|
2472
2530
|
All this relies on the fact that you have a route that includes .:format.
|
2473
2531
|
|
2474
|
-
* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [
|
2532
|
+
* Expanded :method option in FormTagHelper#form_tag, FormHelper#form_for, PrototypeHelper#remote_form_for, PrototypeHelper#remote_form_tag, and PrototypeHelper#link_to_remote to allow for verbs other than GET and POST by automatically creating a hidden form field named _method, which will simulate the other verbs over post [David Heinemeier Hansson]
|
2475
2533
|
|
2476
|
-
* Added :method option to UrlHelper#link_to, which allows for using other verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [
|
2534
|
+
* Added :method option to UrlHelper#link_to, which allows for using other verbs than GET for the link. This replaces the :post option, which is now deprecated. Example: link_to "Destroy", person_url(:id => person), :method => :delete [David Heinemeier Hansson]
|
2477
2535
|
|
2478
2536
|
* follow_redirect doesn't complain about being redirected to the same controller. #5153 [dymo@mk.ukrtelecom.ua]
|
2479
2537
|
|
2480
|
-
* Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark
|
2538
|
+
* Add layout attribute to response object with the name of the layout that was rendered, or nil if none rendered. [Kevin Clark]
|
2481
2539
|
|
2482
2540
|
* Fix NoMethodError when parsing params like &&. [Adam Greenfield]
|
2483
2541
|
|
@@ -2485,7 +2543,7 @@ superclass' view_paths. [Rick]
|
|
2485
2543
|
|
2486
2544
|
* Excise ingrown code from FormOptionsHelper#options_for_select. #5008 [anonymous]
|
2487
2545
|
|
2488
|
-
* Small fix in routing to allow dynamic routes (broken after [4242]) [Rick]
|
2546
|
+
* Small fix in routing to allow dynamic routes (broken after [4242]) [Rick Olson]
|
2489
2547
|
|
2490
2548
|
map.connect '*path', :controller => 'files', :action => 'show'
|
2491
2549
|
|
@@ -2495,17 +2553,17 @@ superclass' view_paths. [Rick]
|
|
2495
2553
|
|
2496
2554
|
error_messages_for :account, :user, :subscription, :object_name => :account
|
2497
2555
|
|
2498
|
-
* Fix assert_redirected_to tests according to real-world usage. Also, don't fail if you add an extra :controller option: [Rick]
|
2556
|
+
* Fix assert_redirected_to tests according to real-world usage. Also, don't fail if you add an extra :controller option: [Rick Olson]
|
2499
2557
|
|
2500
2558
|
redirect_to :action => 'new'
|
2501
2559
|
assert_redirected_to :controller => 'monkeys', :action => 'new'
|
2502
2560
|
|
2503
|
-
* Diff compared routing options. Allow #assert_recognizes to take a second arg as a hash to specify optional request method [Rick]
|
2561
|
+
* Diff compared routing options. Allow #assert_recognizes to take a second arg as a hash to specify optional request method [Rick Olson]
|
2504
2562
|
|
2505
2563
|
assert_recognizes({:controller => 'users', :action => 'index'}, 'users')
|
2506
2564
|
assert_recognizes({:controller => 'users', :action => 'create'}, {:path => 'users', :method => :post})
|
2507
2565
|
|
2508
|
-
* Diff compared options with #assert_redirected_to [Rick]
|
2566
|
+
* Diff compared options with #assert_redirected_to [Rick Olson]
|
2509
2567
|
|
2510
2568
|
* Add support in routes for semicolon delimited "subpaths", like /books/:id;:action [Jamis Buck]
|
2511
2569
|
|
@@ -2526,9 +2584,9 @@ superclass' view_paths. [Rick]
|
|
2526
2584
|
|
2527
2585
|
*1.12.4* (August 8th, 2006)
|
2528
2586
|
|
2529
|
-
* Cache CgiRequest#request_parameters so that multiple calls don't re-parse multipart data. [Rick]
|
2587
|
+
* Cache CgiRequest#request_parameters so that multiple calls don't re-parse multipart data. [Rick Olson]
|
2530
2588
|
|
2531
|
-
* Fixed that remote_form_for can leave out the object parameter and default to the instance variable of the object_name, just like form_for [
|
2589
|
+
* Fixed that remote_form_for can leave out the object parameter and default to the instance variable of the object_name, just like form_for [David Heinemeier Hansson]
|
2532
2590
|
|
2533
2591
|
* Added ActionController.filter_parameter_logging that makes it easy to remove passwords, credit card numbers, and other sensitive information from being logged when a request is handled. #1897 [jeremye@bsa.ca.gov]
|
2534
2592
|
|
@@ -2569,7 +2627,7 @@ superclass' view_paths. [Rick]
|
|
2569
2627
|
|
2570
2628
|
* Update the diagnostics template skip the useless '<controller not set>' text. [Nicholas Seckar]
|
2571
2629
|
|
2572
|
-
* CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as an easy option [
|
2630
|
+
* CHANGED DEFAULT: Don't parse YAML input by default, but keep it available as an easy option [David Heinemeier Hansson]
|
2573
2631
|
|
2574
2632
|
* Add additional autocompleter options [aballai, Thomas Fuchs]
|
2575
2633
|
|
@@ -2577,7 +2635,7 @@ superclass' view_paths. [Rick]
|
|
2577
2635
|
|
2578
2636
|
* Applied Prototype $() performance patches (#4465, #4477) and updated script.aculo.us [Sam Stephenson, Thomas Fuchs]
|
2579
2637
|
|
2580
|
-
* Added automated timestamping to AssetTagHelper methods for stylesheets, javascripts, and images when Action Controller is run under Rails [
|
2638
|
+
* Added automated timestamping to AssetTagHelper methods for stylesheets, javascripts, and images when Action Controller is run under Rails [David Heinemeier Hansson]. Example:
|
2581
2639
|
|
2582
2640
|
image_tag("rails.png") # => '<img alt="Rails" src="/images/rails.png?1143664135" />'
|
2583
2641
|
|
@@ -2611,9 +2669,9 @@ superclass' view_paths. [Rick]
|
|
2611
2669
|
|
2612
2670
|
* Fix double url escaping of remote_function. Add :escape => false option to ActionView's url_for. [Nicholas Seckar]
|
2613
2671
|
|
2614
|
-
* Add :script option to in_place_editor to support evalScripts (closes #4194) [
|
2672
|
+
* Add :script option to in_place_editor to support evalScripts (closes #4194) [Cody Fauser]
|
2615
2673
|
|
2616
|
-
* Fix mixed case enumerable methods in the JavaScript Collection Proxy (closes #4314) [
|
2674
|
+
* Fix mixed case enumerable methods in the JavaScript Collection Proxy (closes #4314) [Cody Fauser]
|
2617
2675
|
|
2618
2676
|
* Undo accidental escaping for mail_to; add regression test. [Nicholas Seckar]
|
2619
2677
|
|
@@ -2648,9 +2706,9 @@ superclass' view_paths. [Rick]
|
|
2648
2706
|
|
2649
2707
|
* XML-formatted requests are typecast according to "type" attributes for :xml_simple [Jamis Buck]
|
2650
2708
|
|
2651
|
-
* Added protection against proxy setups treating requests as local even when they're not #3898 [
|
2709
|
+
* Added protection against proxy setups treating requests as local even when they're not #3898 [Steve Purcell]
|
2652
2710
|
|
2653
|
-
* Added TestRequest#raw_post that simulate raw_post from CgiRequest #3042 [
|
2711
|
+
* Added TestRequest#raw_post that simulate raw_post from CgiRequest #3042 [François Beausoleil]
|
2654
2712
|
|
2655
2713
|
* Underscore dasherized keys in formatted requests [Jamis Buck]
|
2656
2714
|
|
@@ -2666,11 +2724,11 @@ superclass' view_paths. [Rick]
|
|
2666
2724
|
|
2667
2725
|
* Added simple alert() notifications for RJS exceptions when config.action_view.debug_rjs = true. [Sam Stephenson]
|
2668
2726
|
|
2669
|
-
* Added :content_type option to render, so you can change the content type on the fly [
|
2727
|
+
* Added :content_type option to render, so you can change the content type on the fly [David Heinemeier Hansson]. Example: render :action => "atom.rxml", :content_type => "application/atom+xml"
|
2670
2728
|
|
2671
|
-
* CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason [
|
2729
|
+
* CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason [David Heinemeier Hansson]
|
2672
2730
|
|
2673
|
-
* Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [
|
2731
|
+
* Added option to render action/template/file of a specific extension (and here by template type). This means you can have multiple templates with the same name but a different extension [David Heinemeier Hansson]. Example:
|
2674
2732
|
|
2675
2733
|
class WeblogController < ActionController::Base
|
2676
2734
|
def index
|
@@ -2684,7 +2742,7 @@ superclass' view_paths. [Rick]
|
|
2684
2742
|
end
|
2685
2743
|
end
|
2686
2744
|
|
2687
|
-
* Added better support for using the same actions to output for different sources depending on the Accept header [
|
2745
|
+
* Added better support for using the same actions to output for different sources depending on the Accept header [David Heinemeier Hansson]. Example:
|
2688
2746
|
|
2689
2747
|
class WeblogController < ActionController::Base
|
2690
2748
|
def create
|
@@ -2701,9 +2759,9 @@ superclass' view_paths. [Rick]
|
|
2701
2759
|
end
|
2702
2760
|
end
|
2703
2761
|
|
2704
|
-
* Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [
|
2762
|
+
* Added Base#render(:xml => xml) that works just like Base#render(:text => text), but sets the content-type to text/xml and the charset to UTF-8 [David Heinemeier Hansson]
|
2705
2763
|
|
2706
|
-
* Integration test's url_for now runs in the context of the last request (if any) so after post /products/show/1 url_for :action => 'new' will yield /product/new [Tobias
|
2764
|
+
* Integration test's url_for now runs in the context of the last request (if any) so after post /products/show/1 url_for :action => 'new' will yield /product/new [Tobias Lütke]
|
2707
2765
|
|
2708
2766
|
* Re-added mixed-in helper methods for the JavascriptGenerator. Moved JavascriptGenerators methods to a module that is mixed in after the helpers are added. Also fixed that variables set in the enumeration methods like #collect are set correctly. Documentation added for the enumeration methods [Rick Olson]. Examples:
|
2709
2767
|
|
@@ -2723,7 +2781,7 @@ superclass' view_paths. [Rick]
|
|
2723
2781
|
# Assign the default XmlSimple to a new content type
|
2724
2782
|
ActionController::Base.param_parsers['application/backpack+xml'] = :xml_simple
|
2725
2783
|
|
2726
|
-
Default YAML web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functionality back. As part of this new plugin support, request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias
|
2784
|
+
Default YAML web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functionality back. As part of this new plugin support, request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias Lütke]
|
2727
2785
|
|
2728
2786
|
* Fixed Effect.Appear in effects.js to work with floats in Safari #3524, #3813, #3044 [Thomas Fuchs]
|
2729
2787
|
|
@@ -2753,11 +2811,11 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2753
2811
|
|
2754
2812
|
* Added various InPlaceEditor options, #3746, #3891, #3896, #3906 [Bill Burcham, ruairi, sl33p3r]
|
2755
2813
|
|
2756
|
-
* Added :count option to pagination that'll make it possible for the ActiveRecord::Base.count call to using something else than * for the count. Especially important for count queries using DISTINCT #3839 [
|
2814
|
+
* Added :count option to pagination that'll make it possible for the ActiveRecord::Base.count call to using something else than * for the count. Especially important for count queries using DISTINCT #3839 [Stefan Kaes]
|
2757
2815
|
|
2758
2816
|
* Update script.aculo.us to V1.5.2 [Thomas Fuchs]
|
2759
2817
|
|
2760
|
-
* Added element and collection proxies to RJS [
|
2818
|
+
* Added element and collection proxies to RJS [David Heinemeier Hansson]. Examples:
|
2761
2819
|
|
2762
2820
|
page['blank_slate'] # => $('blank_slate');
|
2763
2821
|
page['blank_slate'].show # => $('blank_slate').show();
|
@@ -2803,7 +2861,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2803
2861
|
|
2804
2862
|
* Document the :xhr option for verifications. #3666 [leeo]
|
2805
2863
|
|
2806
|
-
* Added :only and :except controls to skip_before/after_filter just like for when you add filters [
|
2864
|
+
* Added :only and :except controls to skip_before/after_filter just like for when you add filters [David Heinemeier Hansson]
|
2807
2865
|
|
2808
2866
|
* Ensure that the instance variables are copied to the template when performing render :update. [Nicholas Seckar]
|
2809
2867
|
|
@@ -2825,13 +2883,13 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2825
2883
|
|
2826
2884
|
* Fix render(:update) to not render layouts. [Sam Stephenson]
|
2827
2885
|
|
2828
|
-
* Fixed that SSL would not correctly be detected when running lighttpd/fcgi behind lighttpd w/mod_proxy #3548 [
|
2886
|
+
* Fixed that SSL would not correctly be detected when running lighttpd/fcgi behind lighttpd w/mod_proxy #3548 [Steve Purcell]
|
2829
2887
|
|
2830
2888
|
* Added the possibility to specify atomatic expiration for the memcachd session container #3571 [Stefan Kaes]
|
2831
2889
|
|
2832
2890
|
* Change layout discovery to take into account the change in semantics with File.join and nil arguments. [Marcel Molina Jr.]
|
2833
2891
|
|
2834
|
-
* Raise a RedirectBackError if redirect_to :back is called when there's no HTTP_REFERER defined #3049 [
|
2892
|
+
* Raise a RedirectBackError if redirect_to :back is called when there's no HTTP_REFERER defined #3049 [Kevin Clark]
|
2835
2893
|
|
2836
2894
|
* Treat timestamps like datetimes for scaffolding purposes #3388 [Maik Schmidt]
|
2837
2895
|
|
@@ -2871,15 +2929,15 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2871
2929
|
|
2872
2930
|
* Have the form builder output radio button, not check box, when calling the radio button helper. #3331 [LouisStAmour@gmail.com]
|
2873
2931
|
|
2874
|
-
* Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [
|
2932
|
+
* Added assignment of the Autocompleter object created by JavaScriptMacroHelper#auto_complete_field to a local javascript variables [David Heinemeier Hansson]
|
2875
2933
|
|
2876
|
-
* Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [
|
2934
|
+
* Added :on option for PrototypeHelper#observe_field that allows you to specify a different callback hook to have the observer trigger on [David Heinemeier Hansson]
|
2877
2935
|
|
2878
|
-
* Added JavaScriptHelper#button_to_function that works just like JavaScriptHelper#link_to_function but uses a button instead of a href [
|
2936
|
+
* Added JavaScriptHelper#button_to_function that works just like JavaScriptHelper#link_to_function but uses a button instead of a href [David Heinemeier Hansson]
|
2879
2937
|
|
2880
|
-
* Added that JavaScriptHelper#link_to_function will honor existing :onclick definitions when adding the function call [
|
2938
|
+
* Added that JavaScriptHelper#link_to_function will honor existing :onclick definitions when adding the function call [David Heinemeier Hansson]
|
2881
2939
|
|
2882
|
-
* Added :disable_with option to FormTagHelper#submit_tag to allow for easily disabled submit buttons with different text [
|
2940
|
+
* Added :disable_with option to FormTagHelper#submit_tag to allow for easily disabled submit buttons with different text [David Heinemeier Hansson]
|
2883
2941
|
|
2884
2942
|
* Make auto_link handle nil by returning quickly if blank? [Scott Barron]
|
2885
2943
|
|
@@ -2897,7 +2955,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2897
2955
|
page.visual_effect :fade, 'notice'
|
2898
2956
|
end
|
2899
2957
|
|
2900
|
-
* Add session ID to default logging, but remove the verbose description of every step [
|
2958
|
+
* Add session ID to default logging, but remove the verbose description of every step [David Heinemeier Hansson]
|
2901
2959
|
|
2902
2960
|
* Add the following RJS methods: [Sam Stephenson]
|
2903
2961
|
|
@@ -2919,7 +2977,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2919
2977
|
|
2920
2978
|
* Update to Prototype 1.4.0 final [Sam Stephenson]
|
2921
2979
|
|
2922
|
-
* Added form_remote_for (form_for meets form_remote_tag) [
|
2980
|
+
* Added form_remote_for (form_for meets form_remote_tag) [David Heinemeier Hansson]
|
2923
2981
|
|
2924
2982
|
* Update to script.aculo.us 1.5.0_rc6
|
2925
2983
|
|
@@ -2927,7 +2985,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2927
2985
|
|
2928
2986
|
* Fix docs for text_area_tag. #3083. [Christopher Cotton]
|
2929
2987
|
|
2930
|
-
* Change form_for and fields_for method signatures to take object name and object as separate arguments rather than as a Hash. [
|
2988
|
+
* Change form_for and fields_for method signatures to take object name and object as separate arguments rather than as a Hash. [David Heinemeier Hansson]
|
2931
2989
|
|
2932
2990
|
* Introduce :selected option to the select helper. Allows you to specify a selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. #2991 [Jonathan Viney <jonathan@bluewire.net.nz>]
|
2933
2991
|
|
@@ -2945,7 +3003,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2945
3003
|
|
2946
3004
|
* Pass multiple arguments to Element.show and Element.hide in JavaScriptGenerator instead of using iterators. [Sam Stephenson]
|
2947
3005
|
|
2948
|
-
* Improve expire_fragment documentation. #2966 [court3nay
|
3006
|
+
* Improve expire_fragment documentation. #2966 [court3nay]
|
2949
3007
|
|
2950
3008
|
* Correct docs for automatic layout assignment. #2610. [Charles M. Gerungan]
|
2951
3009
|
|
@@ -2967,7 +3025,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2967
3025
|
|
2968
3026
|
* Correct time_zone_options_for_select docs. #2892 [pudeyo@rpi.com]
|
2969
3027
|
|
2970
|
-
* Remove the unused, slow response_dump and session_dump variables from error pages. #1222 [lmarlow
|
3028
|
+
* Remove the unused, slow response_dump and session_dump variables from error pages. #1222 [lmarlow]
|
2971
3029
|
|
2972
3030
|
* Performance tweaks: use Set instead of Array to speed up prototype helper include? calls. Avoid logging code if logger is nil. Inline commonly-called template presence checks. #2880, #2881, #2882, #2883 [Stefan Kaes]
|
2973
3031
|
|
@@ -2997,9 +3055,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
2997
3055
|
|
2998
3056
|
* Update documentation for render :file. #2858 [Tom Werner]
|
2999
3057
|
|
3000
|
-
* Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. #2855 [court3nay
|
3058
|
+
* Only include builtin filters whose filenames match /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. #2855 [court3nay]
|
3001
3059
|
|
3002
|
-
* Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [
|
3060
|
+
* Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [David Heinemeier Hansson]. Examples:
|
3003
3061
|
|
3004
3062
|
<% form_for :person, @person, :url => { :action => "update" } do |f| %>
|
3005
3063
|
First name: <%= f.text_field :first_name %>
|
@@ -3032,7 +3090,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3032
3090
|
|
3033
3091
|
*1.11.0* (November 7th, 2005)
|
3034
3092
|
|
3035
|
-
* Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [
|
3093
|
+
* Added request as instance method to views, so you can do <%= request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [David Heinemeier Hansson]
|
3036
3094
|
|
3037
3095
|
* Fix conflict with assert_tag and Glue gem #2255 [david.felstead@gmail.com]
|
3038
3096
|
|
@@ -3040,9 +3098,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3040
3098
|
|
3041
3099
|
* Added action_pack.rb stub so that ActionPack::Version loads properly [Sam Stephenson]
|
3042
3100
|
|
3043
|
-
* Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [
|
3101
|
+
* Added short-hand to assert_tag so assert_tag :tag => "span" can be written as assert_tag "span" [David Heinemeier Hansson]
|
3044
3102
|
|
3045
|
-
* Added skip_before_filter/skip_after_filter for easier control of the filter chain in inheritance hierachies [
|
3103
|
+
* Added skip_before_filter/skip_after_filter for easier control of the filter chain in inheritance hierachies [David Heinemeier Hansson]. Example:
|
3046
3104
|
|
3047
3105
|
class ApplicationController < ActionController::Base
|
3048
3106
|
before_filter :authenticate
|
@@ -3057,7 +3115,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3057
3115
|
skip_before_filter :authenticate
|
3058
3116
|
end
|
3059
3117
|
|
3060
|
-
* Added redirect_to :back as a short-hand for redirect_to(request.env["HTTP_REFERER"]) [
|
3118
|
+
* Added redirect_to :back as a short-hand for redirect_to(request.env["HTTP_REFERER"]) [David Heinemeier Hansson]
|
3061
3119
|
|
3062
3120
|
* Change javascript_include_tag :defaults to not use script.aculo.us loader, which facilitates the use of plugins for future script.aculo.us and third party javascript extensions, and provide register_javascript_include_default for plugins to specify additional JavaScript files to load. Removed slider.js and builder.js from actionpack. [Thomas Fuchs]
|
3063
3121
|
|
@@ -3067,7 +3125,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3067
3125
|
|
3068
3126
|
* Update script.aculo.us to V1.5_rc4 [Thomas Fuchs]
|
3069
3127
|
|
3070
|
-
* Fix that render :text didn't interpolate instance variables #2629, #2626 [
|
3128
|
+
* Fix that render :text didn't interpolate instance variables #2629, #2626 [Stefan Kaes]
|
3071
3129
|
|
3072
3130
|
* Fix line number detection and escape RAILS_ROOT in backtrace Regexp [Nicholas Seckar]
|
3073
3131
|
|
@@ -3086,7 +3144,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3086
3144
|
|
3087
3145
|
*1.10.2* (October 26th, 2005)
|
3088
3146
|
|
3089
|
-
* Reset template variables after using render_to_string [
|
3147
|
+
* Reset template variables after using render_to_string [Stefan Kaes]
|
3090
3148
|
|
3091
3149
|
* Expose the session model backing CGI::Session
|
3092
3150
|
|
@@ -3102,7 +3160,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3102
3160
|
|
3103
3161
|
*1.10.0* (October 16th, 2005)
|
3104
3162
|
|
3105
|
-
* Make string-keys locals assigns optional. Add documentation describing depreciated state [
|
3163
|
+
* Make string-keys locals assigns optional. Add documentation describing depreciated state [Stefan Kaes]
|
3106
3164
|
|
3107
3165
|
* Improve line number detection for template errors [Nicholas Seckar]
|
3108
3166
|
|
@@ -3110,7 +3168,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3110
3168
|
|
3111
3169
|
* Upgrade to Prototype 1.4.0_rc0 [Sam Stephenson]
|
3112
3170
|
|
3113
|
-
* Added assert_vaild. Reports the proper AR error messages as fail message when the passed record is invalid [Tobias
|
3171
|
+
* Added assert_vaild. Reports the proper AR error messages as fail message when the passed record is invalid [Tobias Lütke]
|
3114
3172
|
|
3115
3173
|
* Add temporary support for passing locals to render using string keys [Nicholas Seckar]
|
3116
3174
|
|
@@ -3118,11 +3176,11 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3118
3176
|
|
3119
3177
|
* Raise an exception if an attempt is made to insert more session data into the ActiveRecordStore data column than the column can hold. #2234. [justin@textdrive.com]
|
3120
3178
|
|
3121
|
-
* Removed references to assertions.rb from actionpack assert's backtraces. Makes error reports in functional unit tests much less noisy. [Tobias
|
3179
|
+
* Removed references to assertions.rb from actionpack assert's backtraces. Makes error reports in functional unit tests much less noisy. [Tobias Lütke]
|
3122
3180
|
|
3123
3181
|
* Updated and clarified documentation for JavaScriptHelper to be more concise about the various options for including the JavaScript libs. [Thomas Fuchs]
|
3124
3182
|
|
3125
|
-
* Hide "Retry with Breakpoint" button on error pages until feature is functional. [
|
3183
|
+
* Hide "Retry with Breakpoint" button on error pages until feature is functional. [David Heinemeier Hansson]
|
3126
3184
|
|
3127
3185
|
* Fix Request#host_with_port to use the standard port when Rails is behind a proxy. [Nicholas Seckar]
|
3128
3186
|
|
@@ -3140,7 +3198,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3140
3198
|
|
3141
3199
|
* Misc doc fixes (typos/grammar/etc). #2445. [coffee2code]
|
3142
3200
|
|
3143
|
-
* Speed improvement for session_options. #2287. [
|
3201
|
+
* Speed improvement for session_options. #2287. [Stefan Kaes]
|
3144
3202
|
|
3145
3203
|
* Make cacheing binary files friendly with Windows. #1975. [Rich Olson]
|
3146
3204
|
|
@@ -3152,9 +3210,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3152
3210
|
|
3153
3211
|
* Make assert_tag :children count appropriately. Closes #2181. [jamie@bravenet.com]
|
3154
3212
|
|
3155
|
-
* Forced newer versions of RedCloth to use hard breaks [
|
3213
|
+
* Forced newer versions of RedCloth to use hard breaks [David Heinemeier Hansson]
|
3156
3214
|
|
3157
|
-
* Added new scriptaculous options for auto_complete_field #2343 [
|
3215
|
+
* Added new scriptaculous options for auto_complete_field #2343 [Manfred Stienstra]
|
3158
3216
|
|
3159
3217
|
* Don't prepend the asset host if the string is already a fully-qualified URL
|
3160
3218
|
|
@@ -3168,13 +3226,13 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3168
3226
|
|
3169
3227
|
* Keep flash after components are rendered. #2291 [Rick Olson, Scott]
|
3170
3228
|
|
3171
|
-
* Shorten IE file upload path to filename only to match other browsers. #1507 [court3nay
|
3229
|
+
* Shorten IE file upload path to filename only to match other browsers. #1507 [court3nay]
|
3172
3230
|
|
3173
3231
|
* Fix open/save dialog in IE not opening files send with send_file/send_data, #2279 [Thomas Fuchs]
|
3174
3232
|
|
3175
|
-
* Fixed that auto_discovery_link_tag couldn't take a string as the URL [
|
3233
|
+
* Fixed that auto_discovery_link_tag couldn't take a string as the URL [David Heinemeier Hansson]
|
3176
3234
|
|
3177
|
-
* Fixed problem with send_file and WEBrick using stdout #1812 [
|
3235
|
+
* Fixed problem with send_file and WEBrick using stdout #1812 [David Heinemeier Hansson]
|
3178
3236
|
|
3179
3237
|
* Optimized tag_options to not sort keys, which is no longer necessary when assert_dom_equal and friend is available #1995 [skae]
|
3180
3238
|
|
@@ -3192,7 +3250,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3192
3250
|
|
3193
3251
|
* Speed up cookie use by decreasing string copying #2194 [skae]
|
3194
3252
|
|
3195
|
-
* Fixed access to "Host" header with requests made by crappy old HTTP/1.0 clients #2124 [Marcel Molina]
|
3253
|
+
* Fixed access to "Host" header with requests made by crappy old HTTP/1.0 clients #2124 [Marcel Molina Jr.]
|
3196
3254
|
|
3197
3255
|
* Added easy assignment of fragment cache store through use of symbols for included stores (old way still works too)
|
3198
3256
|
|
@@ -3242,7 +3300,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3242
3300
|
|
3243
3301
|
* Avoid extending view instance with helper modules each request. Closes #1979
|
3244
3302
|
|
3245
|
-
* Performance improvements to CGI methods. Closes #1980 [
|
3303
|
+
* Performance improvements to CGI methods. Closes #1980 [Stefan Kaes]
|
3246
3304
|
|
3247
3305
|
* Added :post option to UrlHelper#link_to that makes it possible to do POST requests through normal ahref links using Javascript
|
3248
3306
|
|
@@ -3259,13 +3317,13 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3259
3317
|
|
3260
3318
|
* Drop trailing \000 if present on RAW_POST_DATA (works around bug in Safari Ajax implementation) #918
|
3261
3319
|
|
3262
|
-
* Fix observe_field to fall back to event-based observation if frequency <= 0 #1916 [
|
3320
|
+
* Fix observe_field to fall back to event-based observation if frequency <= 0 #1916 [Michael Schubert]
|
3263
3321
|
|
3264
3322
|
* Allow use of the :with option for submit_to_remote #1936 [jon@instance-design.co.uk]
|
3265
3323
|
|
3266
|
-
* AbstractRequest#domain returns nil when host is an ip address #2012 [
|
3324
|
+
* AbstractRequest#domain returns nil when host is an ip address #2012 [Kevin Clark]
|
3267
3325
|
|
3268
|
-
* ActionController documentation update #2051 [
|
3326
|
+
* ActionController documentation update #2051 [François Beausoleil]
|
3269
3327
|
|
3270
3328
|
* Yield @content_for_ variables to templates #2058 [Sam Stephenson]
|
3271
3329
|
|
@@ -3281,7 +3339,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3281
3339
|
|
3282
3340
|
* Fix Routing to handle :some_param => nil better. [Nicholas Seckar, Luminas]
|
3283
3341
|
|
3284
|
-
* Add support for :include with pagination (subject to existing constraints for :include with :limit and :offset) #1478 [
|
3342
|
+
* Add support for :include with pagination (subject to existing constraints for :include with :limit and :offset) #1478 [Michael Schubert]
|
3285
3343
|
|
3286
3344
|
* Prevent the benchmark module from blowing up if a non-HTTP/1.1 request is processed
|
3287
3345
|
|
@@ -3309,7 +3367,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3309
3367
|
|
3310
3368
|
* Added support for per-action session management #1763
|
3311
3369
|
|
3312
|
-
* Improved rendering speed on complicated templates by up to 100% (the more complex the templates, the higher the speedup) #1234 [
|
3370
|
+
* Improved rendering speed on complicated templates by up to 100% (the more complex the templates, the higher the speedup) #1234 [Stefan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that.
|
3313
3371
|
|
3314
3372
|
* Added options hash as third argument to FormHelper#input, so you can do input('person', 'zip', :size=>10) #1719 [jeremye@bsa.ca.gov]
|
3315
3373
|
|
@@ -3336,7 +3394,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3336
3394
|
|
3337
3395
|
* Fixed that Action View should always use the included Builder, never attempt to require the gem, to ensure compatibility
|
3338
3396
|
|
3339
|
-
* Added that nil options are not included in tags, so tag("p", :ignore => nil) now returns <p /> not <p ignore="" /> but that tag("p", :ignore => "") still includes it #1465 [
|
3397
|
+
* Added that nil options are not included in tags, so tag("p", :ignore => nil) now returns <p /> not <p ignore="" /> but that tag("p", :ignore => "") still includes it #1465 [Michael Schuerig]
|
3340
3398
|
|
3341
3399
|
* Fixed that UrlHelper#link_to_unless/link_to_if used html_escape on the name if no link was to be applied. This is unnecessary and breaks its use with images #1649 [joergd@pobox.com]
|
3342
3400
|
|
@@ -3374,9 +3432,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3374
3432
|
|
3375
3433
|
* Added javascript_include_tag :defaults shortcut that'll include all the default javascripts included with Action Pack (prototype, effects, controls, dragdrop)
|
3376
3434
|
|
3377
|
-
* Cache several controller variables that are expensive to calculate #1229 [
|
3435
|
+
* Cache several controller variables that are expensive to calculate #1229 [Stefan Kaes]
|
3378
3436
|
|
3379
|
-
* The session class backing CGI::Session::ActiveRecordStore may be replaced with any class that duck-types with a subset of Active Record. See docs for details #1238 [
|
3437
|
+
* The session class backing CGI::Session::ActiveRecordStore may be replaced with any class that duck-types with a subset of Active Record. See docs for details #1238 [Stefan Kaes]
|
3380
3438
|
|
3381
3439
|
* Fixed that hashes was not working properly when passed by GET to lighttpd #849 [Nicholas Seckar]
|
3382
3440
|
|
@@ -3393,7 +3451,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3393
3451
|
<p>Product 2</p>
|
3394
3452
|
<% end %>
|
3395
3453
|
|
3396
|
-
* Added :field_name option to DateHelper#select_(year|month|day) to deviate from the year/month/day defaults #1266 [Marcel Molina]
|
3454
|
+
* Added :field_name option to DateHelper#select_(year|month|day) to deviate from the year/month/day defaults #1266 [Marcel Molina Jr.]
|
3397
3455
|
|
3398
3456
|
* Added JavascriptHelper#draggable_element and JavascriptHelper#drop_receiving_element to facilitate easy dragging and dropping through the script.aculo.us libraries #1578 [Thomas Fuchs]
|
3399
3457
|
|
@@ -3437,7 +3495,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3437
3495
|
|
3438
3496
|
* Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar]
|
3439
3497
|
|
3440
|
-
* Improved AbstractRequest documentation #1483 [court3nay
|
3498
|
+
* Improved AbstractRequest documentation #1483 [court3nay]
|
3441
3499
|
|
3442
3500
|
* Added ActionController::Base.allow_concurrency to control whether the application is thread-safe, so multi-threaded servers like WEBrick knows whether to apply a mutex around the performance of each action. Turned off by default. EXPERIMENTAL FEATURE.
|
3443
3501
|
|
@@ -3449,7 +3507,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3449
3507
|
|
3450
3508
|
* Added :xhr => true/false option to verify so you can ensure that a request is coming from an Ajax call or not #1464 [Thomas Fuchs]
|
3451
3509
|
|
3452
|
-
* Added tag_options as a third parameter to AssetHelper#auto_discovery_link_tag to control options like the title of the link #1430 [
|
3510
|
+
* Added tag_options as a third parameter to AssetHelper#auto_discovery_link_tag to control options like the title of the link #1430 [Kevin Clark]
|
3453
3511
|
|
3454
3512
|
* Added option to pass in parameters to CaptureHelper#capture, so you can create more advanced view helper methods #1466 [duane.johnson@gmail.com]. Example:
|
3455
3513
|
|
@@ -3475,11 +3533,11 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3475
3533
|
|
3476
3534
|
* Added button_to as a form-based solution to deal with harmful actions that should be hidden behind POSTs. This makes it just as easy as link_to to create a safe trigger for actions like destroy, although it's limited by being a block element, the fixed look, and a no-no inside other forms. #1371 [tom@moertel.com]
|
3477
3535
|
|
3478
|
-
* Fixed image_tag so an exception is not thrown just because the image is missing and alt value can't be generated #1395 [Marcel]
|
3536
|
+
* Fixed image_tag so an exception is not thrown just because the image is missing and alt value can't be generated #1395 [Marcel Molina Jr.]
|
3479
3537
|
|
3480
3538
|
* Added a third parameter to TextHelper#auto_link called href_options for specifying additional tag options on the links generated #1401 [tyler.kovacs@gmail.com]. Example: auto_link(text, :all, { :target => "_blank" }) to have all the generated links open in a new window.
|
3481
3539
|
|
3482
|
-
* Fixed TextHelper#highlight to return the text, not nil, if the phrase is blank #1409 [
|
3540
|
+
* Fixed TextHelper#highlight to return the text, not nil, if the phrase is blank #1409 [Patrick Lenz]
|
3483
3541
|
|
3484
3542
|
* Fixed TagHelper such that :name and 'name' keys in the options doesn't result in two attributes #1455 [take_tk]
|
3485
3543
|
|
@@ -3493,7 +3551,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3493
3551
|
|
3494
3552
|
* Allow distance_of_time_in_words to work with any value that responds to #to_time (like dates) #969
|
3495
3553
|
|
3496
|
-
* Support :render option for :verify #1440 [
|
3554
|
+
* Support :render option for :verify #1440 [Tobias Lütke]
|
3497
3555
|
|
3498
3556
|
* Updated vendor copy of html-scanner lib to 0.5.2, for bug fixes and optimizations. The :content option may be used as expected--to find a tag whose textual content is a particular value--in assert_tag, now.
|
3499
3557
|
|
@@ -3607,7 +3665,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3607
3665
|
|
3608
3666
|
* Fixed action/fragment caching using the filestore when a directory and a file wanted to use the same name. Now there's a .cache prefix that sidesteps the conflict #1188 [imbcmdth@hotmail.com]
|
3609
3667
|
|
3610
|
-
* Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko]
|
3668
|
+
* Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko Laine]
|
3611
3669
|
|
3612
3670
|
* Fixed assert_redirected_to to work with :only_path => false #1204 [Alisdair McDiarmid]
|
3613
3671
|
|
@@ -3712,7 +3770,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3712
3770
|
|
3713
3771
|
* Added support for web servers that use PATH_INFO instead of REQUEST_URI like IIS #1014 [BradG/Nicholas Seckar]
|
3714
3772
|
|
3715
|
-
* Added graceful handling of PUT, DELETE, and OPTIONS requests for a complete coverage of REST functionality #1136 [
|
3773
|
+
* Added graceful handling of PUT, DELETE, and OPTIONS requests for a complete coverage of REST functionality #1136 [Josh Knowles]
|
3716
3774
|
|
3717
3775
|
* Fixed that you can now pass an alternative :href option to link_to_function/remote in order to point to somewhere other than # if the javascript fails or is turned off. You can do the same with form_remote_tag by passing in :action. #1113 [Sam Stephenson]
|
3718
3776
|
|
@@ -3736,7 +3794,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3736
3794
|
|
3737
3795
|
* Fixed pagination to work with joins #1034 [scott@sigkill.org]
|
3738
3796
|
|
3739
|
-
* Fixed that *rest parameter in map.connect couldn't accept an empty list #1037 [Dee
|
3797
|
+
* Fixed that *rest parameter in map.connect couldn't accept an empty list #1037 [Dee Zsombor]
|
3740
3798
|
|
3741
3799
|
* Added :confirm option to link_to_remote just like link_to has #1082 [yrashk@fp.org.ua]
|
3742
3800
|
|
@@ -3756,7 +3814,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3756
3814
|
|
3757
3815
|
* Added JavascriptHelper#periodically_call_remote in order to create areas of a page that update automatically at a set interval #945 [Jon Tirsen]
|
3758
3816
|
|
3759
|
-
* Fixed Cache#expire_matched_fragments that couldn't recognize the difference between string and url_for options #1030 [
|
3817
|
+
* Fixed Cache#expire_matched_fragments that couldn't recognize the difference between string and url_for options #1030 [Stefan Kaes]
|
3760
3818
|
|
3761
3819
|
* Added simulation of @request.request_uri in functional tests #1038 [Jamis Buck]
|
3762
3820
|
|
@@ -3799,7 +3857,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3799
3857
|
|
3800
3858
|
* Added :position option to link_to_remote/form_remote_tag that can be either :before, :top, :bottom, or :after and specifies where the return from the method should be inserted #952 [Matthew McCray/Sam Stephenson]
|
3801
3859
|
|
3802
|
-
* Added Effect.Highlight to prototype.js to do Yellow Fade Technique (of 37signals' fame) on any container #952 [Sam Stephenson/
|
3860
|
+
* Added Effect.Highlight to prototype.js to do Yellow Fade Technique (of 37signals' fame) on any container #952 [Sam Stephenson/court3nay]
|
3803
3861
|
|
3804
3862
|
* Added include_seconds option as the third parameter to distance_of_time_in_words which will render "less than a minute" in higher resolution ("less than 10 seconds" etc) #944 [thomas@fesch.at]
|
3805
3863
|
|
@@ -3813,9 +3871,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3813
3871
|
|
3814
3872
|
* Added trailing_slash option to url_for, so you can generate urls ending in a slash. Note that is currently not recommended unless you need it for special reasons since it breaks caching #937 [stian@grytoyr.net]
|
3815
3873
|
|
3816
|
-
* Added expire_matched_fragments(regular_expression) to clear out a lot of fragment caches at once #927 [
|
3874
|
+
* Added expire_matched_fragments(regular_expression) to clear out a lot of fragment caches at once #927 [Rick Olson]
|
3817
3875
|
|
3818
|
-
* Fixed the problems with : and ? in file names for fragment caches on Windows #927 [
|
3876
|
+
* Fixed the problems with : and ? in file names for fragment caches on Windows #927 [Rick Olson]
|
3819
3877
|
|
3820
3878
|
* Added TextHelper#human_size for formatting file sizes, like human_size(1234567) => 1.2 MB #943 [thomas@fesch.at]
|
3821
3879
|
|
@@ -3832,7 +3890,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3832
3890
|
|
3833
3891
|
* Added pagination support through both a controller and helper add-on #817 [Sam Stephenson]
|
3834
3892
|
|
3835
|
-
* Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias
|
3893
|
+
* Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Lütke]
|
3836
3894
|
|
3837
3895
|
* Added a much improved Flash module that allows for finer-grained control on expiration and allows you to flash the current action #839 [Caio Chassot]. Example of flash.now:
|
3838
3896
|
|
@@ -3891,7 +3949,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
3891
3949
|
|
3892
3950
|
* Fixed options_for_select on selected line issue #624 [Florian Weber]
|
3893
3951
|
|
3894
|
-
* Added CaptureHelper with CaptureHelper#capture and CaptureHelper#content_for. See documentation in helper #837 [Tobias
|
3952
|
+
* Added CaptureHelper with CaptureHelper#capture and CaptureHelper#content_for. See documentation in helper #837 [Tobias Lütke]
|
3895
3953
|
|
3896
3954
|
* Fixed :anchor use in url_for #821 [Nicholas Seckar]
|
3897
3955
|
|
@@ -4027,7 +4085,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4027
4085
|
|
4028
4086
|
* Fixed the ordering of attributes in the xml-decleration of Builder #540 [woeye]
|
4029
4087
|
|
4030
|
-
* Added @request.raw_post as a convenience access to @request.env['RAW_POST_DATA'] #534 [Tobias
|
4088
|
+
* Added @request.raw_post as a convenience access to @request.env['RAW_POST_DATA'] #534 [Tobias Lütke]
|
4031
4089
|
|
4032
4090
|
* Added support for automatic id-based indexing for lists of items #532 [dblack]. Example:
|
4033
4091
|
|
@@ -4117,13 +4175,13 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4117
4175
|
|
4118
4176
|
* Fixed url rewriter confusion when the controller or action name was a substring of the controller_prefix or action_prefix
|
4119
4177
|
|
4120
|
-
* Added conditional layouts like <tt>layout "weblog_standard", :except => :rss</tt> #452 [Marcel Molina]
|
4178
|
+
* Added conditional layouts like <tt>layout "weblog_standard", :except => :rss</tt> #452 [Marcel Molina Jr.]
|
4121
4179
|
|
4122
4180
|
* Fixed that MemCacheStore wasn't included by default and added default MemCache object pointing to localhost #447 [Lucas Carlson]
|
4123
4181
|
|
4124
|
-
* Added fourth argument to render_collection_of_partials that allows you to specify local_assigns -- just like render_partial #432 [
|
4182
|
+
* Added fourth argument to render_collection_of_partials that allows you to specify local_assigns -- just like render_partial #432 [Ryan Davis]
|
4125
4183
|
|
4126
|
-
* Fixed that host would choke when cgi.host returned nil #432 [Tobias
|
4184
|
+
* Fixed that host would choke when cgi.host returned nil #432 [Tobias Lütke]
|
4127
4185
|
|
4128
4186
|
* Added that form helpers now take an index option #448 [Tim Bates]
|
4129
4187
|
|
@@ -4155,7 +4213,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4155
4213
|
redirect_to(:controller => "account", :action => "login") unless @session[:authenticated]
|
4156
4214
|
end
|
4157
4215
|
|
4158
|
-
* Added conditional filters #431 [Marcel]. Example:
|
4216
|
+
* Added conditional filters #431 [Marcel Molina Jr.]. Example:
|
4159
4217
|
|
4160
4218
|
class JournalController < ActionController::Base
|
4161
4219
|
# only require authentication if the current action is edit or delete
|
@@ -4189,7 +4247,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4189
4247
|
|
4190
4248
|
* Added second boolean parameter to Base.redirect_to_url and Response#redirect to control whether the redirect is permanent or not (301 vs 302) #375 [Hodel]
|
4191
4249
|
|
4192
|
-
* Fixed redirects when the controller and action is named the same. Still haven't fixed same controller, module, and action, though #201 [Josh]
|
4250
|
+
* Fixed redirects when the controller and action is named the same. Still haven't fixed same controller, module, and action, though #201 [Josh Peek]
|
4193
4251
|
|
4194
4252
|
* Fixed problems with running multiple functional tests in Rails under 1.8.2 by including hack for test/unit weirdness
|
4195
4253
|
|
@@ -4199,7 +4257,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4199
4257
|
*1.1.0*
|
4200
4258
|
|
4201
4259
|
* Added search through session to clear out association caches at the end of each request. This makes it possible to place Active Record objects
|
4202
|
-
in the session without worrying about stale data in the associations (the main object is still subject to caching, naturally) #347 [Tobias
|
4260
|
+
in the session without worrying about stale data in the associations (the main object is still subject to caching, naturally) #347 [Tobias Lütke]
|
4203
4261
|
|
4204
4262
|
* Added more informative exception when using helper :some_helper and the helper requires another file that fails, you'll get an
|
4205
4263
|
error message tells you what file actually failed to load, rather than falling back on assuming it was the helper file itself #346 [dblack]
|
@@ -4219,7 +4277,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4219
4277
|
|
4220
4278
|
* Fixed that textilize and markdown would instantiate their engines even on empty strings. This also fixes #333 [Ulysses]
|
4221
4279
|
|
4222
|
-
* Fixed UrlHelper#link_to_unless so it doesn't care if the id is a string or fixnum [
|
4280
|
+
* Fixed UrlHelper#link_to_unless so it doesn't care if the id is a string or fixnum [Ryan Davis]
|
4223
4281
|
|
4224
4282
|
|
4225
4283
|
*1.0.1*
|
@@ -4236,7 +4294,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4236
4294
|
* Fixed DateHelper#date_select so that you can pass include_blank as an option even if you don't use start_year and end_year #59 [what-a-day]
|
4237
4295
|
|
4238
4296
|
* Added that controllers will now search for a layout in $template_root/layouts/$controller_name.r(html|xml), so PostsController will look
|
4239
|
-
for layouts/posts.rhtml or layouts/posts.rxml and automatically configure this layout if found #307 [Marcel]
|
4297
|
+
for layouts/posts.rhtml or layouts/posts.rxml and automatically configure this layout if found #307 [Marcel Molina Jr.]
|
4240
4298
|
|
4241
4299
|
* Added FormHelper#radio_button to work with radio buttons like its already possible with check boxes [Michael Koziarski]
|
4242
4300
|
|
@@ -4281,11 +4339,11 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4281
4339
|
* Added that render_partial will always by default include a counter with value 1 unless there is a counter passed in via the
|
4282
4340
|
local_assigns hash that overrides it. As a result, render_collection_of_partials can still be written in terms of render_partial
|
4283
4341
|
and partials that make use of a counter can be called without problems from both render_collection_of_partials as well as
|
4284
|
-
render_partial #295 [
|
4342
|
+
render_partial #295 [Marcel Molina Jr.]
|
4285
4343
|
|
4286
4344
|
* Fixed CgiRequest#out to fall back to #write if $stdout doesn't have #syswrite [Jeremy Kemper]
|
4287
4345
|
|
4288
|
-
* Fixed all helpers so that they use XHTML compliant double quotes for values instead of single quotes [htonl/
|
4346
|
+
* Fixed all helpers so that they use XHTML compliant double quotes for values instead of single quotes [htonl/Jeremy Kemper]
|
4289
4347
|
|
4290
4348
|
* Added link_to_image(src, options = {}, html_options = {}). Documentation:
|
4291
4349
|
|
@@ -4305,11 +4363,11 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4305
4363
|
|
4306
4364
|
* Fixed to_input_field_tag so it no longer explicitly uses InstanceTag.value if value was specified in the options hash [evl]
|
4307
4365
|
|
4308
|
-
* Added the possibility of having validate be protected for assert_(in)valid_column #263 [Tobias
|
4366
|
+
* Added the possibility of having validate be protected for assert_(in)valid_column #263 [Tobias Lütke]
|
4309
4367
|
|
4310
4368
|
* Added that ActiveRecordHelper#form now calls url_for on the :action option.
|
4311
4369
|
|
4312
|
-
* Added all the HTTP methods as alternatives to the generic "process" for functional testing #276 [Tobias
|
4370
|
+
* Added all the HTTP methods as alternatives to the generic "process" for functional testing #276 [Tobias Lütke]. Examples:
|
4313
4371
|
|
4314
4372
|
# Calls Controller#miletone with a GET request
|
4315
4373
|
process :milestone
|
@@ -4466,9 +4524,9 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4466
4524
|
|
4467
4525
|
* Added a hidden field to checkboxes generated with FormHelper#check_box that will make sure that the unchecked value (usually 0)
|
4468
4526
|
is sent even if the checkbox is not checked. This relieves the controller from doing custom checking if the checkbox wasn't
|
4469
|
-
checked. BEWARE: This might conflict with your run-on-the-mill work-around code. [Tobias
|
4527
|
+
checked. BEWARE: This might conflict with your run-on-the-mill work-around code. [Tobias Lütke]
|
4470
4528
|
|
4471
|
-
* Fixed error_message_on to just use the first if more than one error had been added [
|
4529
|
+
* Fixed error_message_on to just use the first if more than one error had been added [Marcel Molina Jr.]
|
4472
4530
|
|
4473
4531
|
* Fixed that URL rewriting with /controller/ was working but /controller was not and that you couldn't use :id on index [geech]
|
4474
4532
|
|
@@ -4588,7 +4646,7 @@ Default YAML web services were retired, ActionController::Base.param_parsers car
|
|
4588
4646
|
|
4589
4647
|
* Added caching for compiled ERb templates. On Basecamp, it gave between 8.5% and 71% increase in performance [Andreas Schwarz].
|
4590
4648
|
|
4591
|
-
* Added implicit counter variable to render_collection_of_partials [Marcel]. From the docs:
|
4649
|
+
* Added implicit counter variable to render_collection_of_partials [Marcel Molina Jr.]. From the docs:
|
4592
4650
|
|
4593
4651
|
<%= render_collection_of_partials "ad", @advertisements %>
|
4594
4652
|
|