dmbf29 / predictor-api

match prediction app / back-end API built on Rails
1 stars 4 forks source link

World cup setup #86

Closed dmbf29 closed 1 year ago

dmbf29 commented 1 year ago

Created a rake task to setup the World Cup groups and teams.

No matches yet. Need an API for that.

dmbf29 commented 1 year ago

When deployed, we'll need to run

heroku run rails competition:world_cup
heroku run rails team:add_flag
dmbf29 commented 1 year ago
Screen Shot 2022-11-08 at 22 39 07
dmbf29 commented 1 year ago

For some reason, when Vue is asking for the competition matches in the matches_controller, it’s still sending competition_id: '1' which shouldn’t be the case so I hard-coded the last one @competition = Competition.order(id: :desc).first

trouni commented 1 year ago

I saw you reverted to the original version, did it end up working?

dmbf29 commented 1 year ago

Yes. Reverted the matches_controller to what it was before and everything 👌