From 4e1967435425c1923eab4362543035e9844ce5a2 Mon Sep 17 00:00:00 2001 From: Josh Atwell Date: Sat, 13 May 2017 07:17:41 +0000 Subject: [PATCH] tried moving users to top of file following a SO answer. Didnt seem to work --- config/routes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 9365963..2d1a99f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ Rails.application.routes.draw do - + # users rotues + devise_for :users, :controllers => {registrations: "registrations", omniauth_callbacks: "omniauth_callbacks"} + match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup #workout routes resources :workouts do collection do @@ -67,9 +69,7 @@ post :untrash end end - # users rotues - devise_for :users, :controllers => {registrations: "registrations", omniauth_callbacks: "omniauth_callbacks"} - match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup + end