redirecting to angular files when logged in

angular
Matt Huntington 10 years ago
parent 2536f3ff68
commit 319a215246

@ -5,6 +5,10 @@ class ApplicationController < ActionController::Base
helper_method :current_user
def angular
render '/angular'
end
def welcome
render '/welcome'
end

@ -13,6 +13,7 @@ class SessionController < ApplicationController
user.update(session_token: token)
flash[:message] = "Thanks for logging in, sinner."
redirect_to application_angular_path
else
flash[:message] = "Email / Password combo does not exist!"
end

@ -1,6 +1,8 @@
Rails.application.routes.draw do
root 'application#welcome'
get 'application/angular'
resources :transgressions, only: [:index, :create], defaults: { format: :json } do
resources :confessions, only: [:create], shallow: true
end

Loading…
Cancel
Save