Document that default_url_options must return a hash with symbolized

keys
上级 9efe01ef
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册