Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Sinatra 作为框架在 Ruby 中为大学做应用程序,我使用 erb 作为模板,在本地一切正常,但在 heroku 中给了我这个错误:
No such file or directory - /app/views/index.erb:
我很讨厌 Heroku,都是问题。
谢谢。
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:
config.ru
.rb
set :root, './'
This should fix your problem especially because your also having trouble with your models.
models