Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mverzilli/remember_me
base: 14c90cbae5
...
head fork: mverzilli/remember_me
compare: dfad477827
  • 2 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
9 app/controllers/application_controller.rb
@@ -1,6 +1,13 @@
class ApplicationController < ActionController::Base
protect_from_forgery
- def after_sign_in_path_for user
+ def after_sign_in_path_for user
schedules_path
end
+ def after_inactive_sign_up_path_for user
+ tour_path(1)
+ end
+ def after_sign_up_path_for user
+ tour_path(1)
+ end
+
end
View
14 app/controllers/users/registrations_controller.rb
@@ -0,0 +1,14 @@
+class Users::RegistrationsController < Devise::RegistrationsController
+
+ def success
+ @email = params[:email].presence || "you"
+ end
+
+ protected
+
+ def after_inactive_sign_up_path_for(resource)
+ flash[:notice] = nil
+ users_registrations_success_path :email => resource.email
+ end
+
+end
View
0  app/views/devise/registrations/edit.html.erb → app/views/users/registrations/edit.html.erb
File renamed without changes
View
0  app/views/devise/registrations/new.html.erb → app/views/users/registrations/new.html.erb
File renamed without changes
View
7 app/views/users/registrations/success.html.erb
@@ -0,0 +1,7 @@
+<div class ="centered w50">
+ <h2>
+ <div class="i48grad-message"></div>
+ Almost there!
+ </h2>
+ <p>You have signed up successfully. However, we could not sign you in because your account is unconfirmed. We have just sent an email to <%= @email %> with an activation link. Open the activation link and start using Remindem!</p>
+</div>
View
4 config/routes.rb
@@ -1,5 +1,7 @@
RememberMe::Application.routes.draw do
- devise_for :users
+ devise_for :users, :controllers => {:registrations => 'users/registrations' } do
+ get 'users/registrations/success', :to => 'users/registrations#success'
+ end
resources :schedules, :path => '/reminders' do
resources :logs, :only => :index

No commit comments for this range

Something went wrong with that request. Please try again.