Skip to content

Instantly share code, notes, and snippets.

@mwlang
Created June 21, 2013 14:00
Show Gist options
  • Save mwlang/5831357 to your computer and use it in GitHub Desktop.
Save mwlang/5831357 to your computer and use it in GitHub Desktop.
module ApplicationHelper
def back_url(parents)
url_for(parents).split("/")[0..-2].join("/")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment