Skip to content

Instantly share code, notes, and snippets.

@mikebannister
Created February 21, 2011 17:08
Show Gist options
  • Save mikebannister/837354 to your computer and use it in GitHub Desktop.
Save mikebannister/837354 to your computer and use it in GitHub Desktop.
This:
<%= link_to "Destroy", employees_confirm_path(
:path => employee_path,
:return_path => request.env['PATH_INFO'])
%>
Renders this:
<a href="/employees/confirm?path=%2Femployees%2F14&amp;return_path=%2Femployees%2F14">Destroy</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment