Reputation: 1
i'm doing and app for college in Ruby with Sinatra as frameworks, i'm using erb for templates and in local is everything ok but in heroku gives me that error:
No such file or directory - /app/views/index.erb:
I'm pretty sick of Heroku, all are problems.
Thanks.
Upvotes: 0
Views: 722
Reputation: 710
I ran into a problem like this, my paths were messed up. In your config.ru
file or your .rb
file, above your sinatra code put:
set :root, './'
This should fix your problem especially because your also having trouble with your models
.
Upvotes: 1