-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate home page and CSV parsing logic #32
Conversation
I've also taken the liberty of migrating the CSV uploading/parsing logic to a separate service. CSV parsing doesn't really fit into the MVC paradigm so it makes sense to take it out of the controllers. This cleans up the code and admits a more modular way of reading in our datasets |
afa2696
to
dd10aa6
Compare
|
||
flash[:notice] = "Welcome back, #{@current_user.first_name}!" unless flash[:notice] || flash[:error] | ||
redirect_to user_path(@current_user) | ||
redirect_to schedules_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR title
@@ -1,6 +1,6 @@ | |||
# frozen_string_literal: true | |||
|
|||
require 'csv' | |||
# require_relative '../services/csv_handler' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Currently, the home page after login is the index for
user
. This isn't useful, so change it to land onschedules
instead.