I ran into a strange routing problem with Devise. Recently I added email confirmation through Devise for my Rails app and I was trying to setup the confirmation/new action so that users could have their email confirmations re-sent post-registration.
So here's my current route setup for my Devise user authentication:
devise_for :users do
match 'users/logout' => 'devise/sessions#destroy'
end
And after running rake routes this is what I get for the pertinent new confirmation path that I want:
new_user_confirmation GET /users/confirmation/new(.:format) {:action=>"new", :controller=>"devise/confirmations"}
My link to the new confirmation email action is as so:
<%= link_to "Didn't receive unlock instructions?", new_user_confirmation %>
Clicking on this link redirects me to the url /users/confirmation/new.user
but I get the routing error:
Routing Error
No route matches {:controller=>"devise/tournaments", :action=>"results"}
Which is strange to me because Devise has nothing to do with my tournaments controller nor is my tournaments controller ever referenced on any devise-related functionality.
I'm using Rails 3.1 and Devise 2.1.2