make confirmations work

This commit is contained in:
Connor Turland 2017-10-18 19:35:40 -04:00
parent 4f6c93e86e
commit 7224d02c20
3 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
module Users
class ConfirmationsController < Devise::ConfirmationsController
private
def after_confirmation_path_for(resource_name, resource)
sign_in_path
end
end
end

View file

@ -8,5 +8,3 @@
<div><%= f.submit "Resend confirmation instructions" %></div> <div><%= f.submit "Resend confirmation instructions" %></div>
<% end %> <% end %>
<%= render "devise/shared/links" %>

View file

@ -97,6 +97,7 @@ Metamaps::Application.routes.draw do
resources :tokens, only: [:new] resources :tokens, only: [:new]
devise_for :users, skip: :sessions, controllers: { devise_for :users, skip: :sessions, controllers: {
confirmations: 'users/confirmations',
registrations: 'users/registrations', registrations: 'users/registrations',
passwords: 'users/passwords', passwords: 'users/passwords',
sessions: 'users/sessions' sessions: 'users/sessions'