I'd like to shorten up a confirmation link so that users won't have text-wrapping issues in their e-mail clients. My links look like this (using Devise confirmable):
and I'd like to make them more like
or even shorter if possible.
Is there a simple way to do this in routing?
Here's what I've tried so far, without success:
map.connect '/yes/:token', :controller => 'users', :action => 'confirmation', :invitation_token => :token
map.connect '/yes/:invitation_token', :controller => 'users', :action => 'confirmation'
I tried these both after the map.devise_for :users line, so as to not screw with the already working login system.