Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def localized_path_to(key, options = {})
- html_options = options.slice!(:path, :page)
- path = options[:path] || page_path(options[:page] || key)
- link_to t(key), path, html_options
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement