views:

8

answers:

1

How do you customize this default line generated by Devise in the mailer view ?

<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>

I 've written a method in my controller called user_confirm. And have also defined a route for it. Can I get the url to link to that method with token as the params?

Thanks !

A: 

Got it. lets say i define i named route like this.

map.user_confirm '/user_confirm',  :controller => 'users', :action => 'confirm'

all i had to do is

<p><%= link_to 'Confirm my account', user_confirm_url(confirmation_token => @resource.confirmation_token) %></p>
Shreyas Satish