From 593fa0b950153cfb02bef6ded3cec165ed30d658 Mon Sep 17 00:00:00 2001 From: "Aldo \"xoen\" Giambelluca" Date: Sun, 2 Sep 2012 15:28:08 +0200 Subject: Fixed markup in Upgrading RoR guide [ci skip] There are two changes: - Using syntax for unicode character routes example instead of since it causes single quotes to be transformed into inverted commas. This makes this required change more eye-catching. - Using for the j alias and related helpers as written in the documentation guidelines. --- guides/source/upgrading_ruby_on_rails.textile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'guides/source') diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile index cdf7306264..70d4dabfe2 100644 --- a/guides/source/upgrading_ruby_on_rails.textile +++ b/guides/source/upgrading_ruby_on_rails.textile @@ -54,11 +54,21 @@ h4(#action_pack4_0). Action Pack Rails 4.0 changed how assert_generates, assert_recognizes, and assert_routing work. Now all these assertions raise Assertion instead of ActionController::RoutingError. -Rails 4.0 also changed the way unicode character routes are drawn. Now you can draw unicode character routes directly. If you already draw such routes, you must change them, e.g. get Rack::Utils.escape('こんにちは'), :controller => 'welcome', :action => 'index' to get 'こんにちは', :controller => 'welcome', :action => 'index'. +Rails 4.0 also changed the way unicode character routes are drawn. Now you can draw unicode character routes directly. If you already draw such routes, you must change them, for example: + + +get Rack::Utils.escape('こんにちは'), :controller => 'welcome', :action => 'index' + + +becomes + + +get 'こんにちは', :controller => 'welcome', :action => 'index' + h4(#active_support4_0). Active Support -Rails 4.0 Removed the `j` alias for `ERB::Util#json_escape` since `j` is already used for `ActionView::Helpers::JavaScriptHelper#escape_javascript`. +Rails 4.0 Removed the j alias for ERB::Util#json_escape since j is already used for ActionView::Helpers::JavaScriptHelper#escape_javascript. h4(#helpers_order). Helpers Loading Order -- cgit v1.2.3