I have an unscientific route that uses the SHA token on the route. Here it is in the routes.rb file:
match 'permissions/confirm/:token' => 'permissions#confirm'
I can access the generated route, but I donβt know what to pass for the link_to helper.
Here is what I use for link_to, which does not work:
<%= link_to "Give permission", confirm_permission_path(:token => @permission.token) %>
Thoughts?
source share