Revert "Do not gsub non ASCII characters in header anchor.".
This reverts commit 699babe. Also change the upgrading_ruby_on_rails link back to original in 4_2_release_notes.
This commit is contained in:
parent
ac5b5461d1
commit
597a666601
@ -47,7 +47,7 @@ def dom_id(nodes)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def dom_id_text(text)
|
def dom_id_text(text)
|
||||||
text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/\s+/, '-')
|
text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/[^a-z0-9]+/, ' ').strip.gsub(/\s+/, '-')
|
||||||
end
|
end
|
||||||
|
|
||||||
def engine
|
def engine
|
||||||
|
@ -26,7 +26,7 @@ coverage before going in. You should also first upgrade to Rails 4.1 in case you
|
|||||||
haven't and make sure your application still runs as expected before attempting
|
haven't and make sure your application still runs as expected before attempting
|
||||||
to upgrade to Rails 4.2. A list of things to watch out for when upgrading is
|
to upgrade to Rails 4.2. A list of things to watch out for when upgrading is
|
||||||
available in the
|
available in the
|
||||||
[Upgrading Ruby on Rails](upgrading_ruby_on_rails.html#upgrading-from-rails-4.1-to-rails-4.2)
|
[Upgrading Ruby on Rails](upgrading_ruby_on_rails.html#upgrading-from-rails-4-1-to-rails-4-2)
|
||||||
guide.
|
guide.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user