MAPC / youth_match

Matching algorithm for the City of Boston Youth Jobs program
4 stars 2 forks source link

Routes Incorrectly Point Users to apps sub-directory #19

Open mzagaja opened 7 years ago

mzagaja commented 7 years ago

When attempting to load http://lvh.me:5000/runs I get the following error:

11:55:48 web.1 | 2017-01-19 11:55:48 - Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/mzagaja/Developer/youth_match/apps/views/runs/index.haml:

We would expect it to load the file in /Users/mzagaja/Developer/youth_match/views/runs/index.haml which would be the default behavior for Sinatra, so we need to ascertain why it is looking in the app sub-directory for the views directory and then fix the routing.

mzagaja commented 7 years ago

This is likely due to the fact that it defers to apps/runs.rb for routing instead of using app.rb, so we will need to figure out the correct syntax to refer to the path.