diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-08 23:42:02 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-04-08 23:44:00 -0300 |
commit | 9efe01ef0d332239f37a211e2351f107de5d235b (patch) | |
tree | 7fe6723bb0513b83f6cbc651a25d3ae10a278376 /guides/source/action_controller_overview.textile | |
parent | 9f37f335f23b7e4407161d501e5f7d508e3ab7ec (diff) | |
download | rails-9efe01ef0d332239f37a211e2351f107de5d235b.tar.gz rails-9efe01ef0d332239f37a211e2351f107de5d235b.tar.bz2 rails-9efe01ef0d332239f37a211e2351f107de5d235b.zip |
default_url_options does not receive one argument anymore
Diffstat (limited to 'guides/source/action_controller_overview.textile')
-rw-r--r-- | guides/source/action_controller_overview.textile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guides/source/action_controller_overview.textile b/guides/source/action_controller_overview.textile index 52d134ace5..d6f39c486d 100644 --- a/guides/source/action_controller_overview.textile +++ b/guides/source/action_controller_overview.textile @@ -152,8 +152,7 @@ You can set global default parameters that will be used when generating URLs wit <ruby> class ApplicationController < ActionController::Base - # The options parameter is the hash passed in to 'url_for' - def default_url_options(options) + def default_url_options {:locale => I18n.locale} end end |