forked from fixin.me/fixin.me
Add registration redirection and mail confirmation sending
This commit is contained in:
parent
30af21d580
commit
6d71d38680
7
app/controllers/registrations_controller.rb
Normal file
7
app/controllers/registrations_controller.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class RegistrationsController < Devise::RegistrationsController
|
||||||
|
protected
|
||||||
|
|
||||||
|
def after_inactive_sign_up_path_for(resource)
|
||||||
|
new_user_session_path
|
||||||
|
end
|
||||||
|
end
|
@ -35,6 +35,8 @@ module FixinMe
|
|||||||
#
|
#
|
||||||
# URL to use in sent e-mails.
|
# URL to use in sent e-mails.
|
||||||
config.action_mailer.default_url_options = {host: 'localhost'}
|
config.action_mailer.default_url_options = {host: 'localhost'}
|
||||||
|
# https://guides.rubyonrails.org/configuring.html#config-action-mailer-delivery-method
|
||||||
|
config.action_mailer.delivery_method = :sendmail
|
||||||
|
|
||||||
# List of hosts this app is available at.
|
# List of hosts this app is available at.
|
||||||
# https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization
|
# https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
devise_for :users, path: '', path_names: {registration: 'register'}
|
devise_for :users, path: '', path_names: {registration: 'register'},
|
||||||
|
controllers: {registrations: :registrations}
|
||||||
|
|
||||||
resources :users
|
resources :users
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user