Permalink
Browse files

Document that default_url_options must return a hash with symbolized

keys
  • Loading branch information...
rafaelfranca committed Apr 9, 2012
1 parent 5c7bcfc commit 6f4f499845ad1eb14a0fdc4f495ee33b0c22ed8a
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/guides/source/action_controller_overview.textile
@@ -152,6 +152,7 @@ You can set global default parameters that will be used when generating URLs wit
<ruby>
class ApplicationController < ActionController::Base
+ # This method must return a hash with symbolized keys.
def default_url_options
{:locale => I18n.locale}
end

0 comments on commit 6f4f499

Please sign in to comment.