0

我正在使用 Sinatra 作为框架在 Ruby 中为大学做应用程序,我使用 erb 作为模板,在本地一切正常,但在 heroku 中给了我这个错误:

No such file or directory - /app/views/index.erb:

我很讨厌 Heroku,都是问题。

谢谢。

4

1 回答 1

1

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.

于 2013-04-04T23:30:41.457 回答