Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def localized_path_to(key, options = {})
  2. html_options = options.slice!(:path, :page)
  3. path = options[:path] || page_path(options[:page] || key)
  4. link_to t(key), path, html_options
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement