chengsteven/city-dog-share-calendar

View on GitHub
app/controllers/kalendar_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class KalendarController < ApplicationController
  def index
    if session.key? :user_id
        @user = User.find_by_uid(session[:user_id])
    end
    if @user == nil
      flash[:notice] = "You must be signed in to view your calendar."
      redirect_to root_path()
    end
  end
end