-
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
seed default courses #32
Conversation
lib/tasks/courses.rake
Outdated
weekdays.to_a.foreach do |weekday_name, weekday_index| | ||
slots.foreach do |slot| |
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.
The object method foreach
does not exist. Can you please replace it by each
?
lib/tasks/courses.rake
Outdated
title: title, | ||
description: title, | ||
capacity: 60, | ||
weekday: weekdayz_index, |
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.
Can you please remove the z
at the end of weekdayz.
lib/tasks/courses.rake
Outdated
slots = ['11h - 12h'] | ||
end | ||
|
||
create_courses!(category, weekdays, slots, 60) |
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.
The argument 60
is not expected by the function, so it should be removed to allow the code to be executed.
#33