Skip to content

Commit

Permalink
Fixed markup in Upgrading RoR guide [ci skip]
Browse files Browse the repository at this point in the history
There are two changes:
- Using <ruby> syntax for unicode character routes example instead of
  <tt> since it causes single quotes to be transformed into inverted
  commas. This makes this required change more eye-catching.
- Using <tt> for the j alias and related helpers as written in the
  documentation guidelines.
  • Loading branch information
Aldo "xoen" Giambelluca committed Sep 2, 2012
1 parent abd47c1 commit 593fa0b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions guides/source/upgrading_ruby_on_rails.textile
Expand Up @@ -54,11 +54,21 @@ h4(#action_pack4_0). Action Pack

Rails 4.0 changed how <tt>assert_generates</tt>, <tt>assert_recognizes</tt>, and <tt>assert_routing</tt> work. Now all these assertions raise <tt>Assertion</tt> instead of <tt>ActionController::RoutingError</tt>.

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. <tt>get Rack::Utils.escape('こんにちは'), :controller => 'welcome', :action => 'index'</tt> to <tt>get 'こんにちは', :controller => 'welcome', :action => 'index'</tt>.
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:

<ruby>
get Rack::Utils.escape('こんにちは'), :controller => 'welcome', :action => 'index'
</ruby>

becomes

<ruby>
get 'こんにちは', :controller => 'welcome', :action => 'index'
</ruby>

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 <tt>j</tt> alias for <tt>ERB::Util#json_escape</tt> since <tt>j</tt> is already used for <tt>ActionView::Helpers::JavaScriptHelper#escape_javascript</tt>.

h4(#helpers_order). Helpers Loading Order

Expand Down

0 comments on commit 593fa0b

Please sign in to comment.