[英]I don't understand this SyntaxError. Why /app/app/…? It happens on Heroku, works on rails server
My app works fine on rails server
but when I deploy it on Heroku I get this SyntaxError . 我的应用程序在rails server
上正常工作,但是当我在Heroku上部署它时,我得到了这个SyntaxError 。 The strangest thing is that I don't have any /app/app directory. 最奇怪的是我没有任何/ app / app目录。 Why is it twice? 为什么两次?
The /app
root is something that heroku does (just interpret the first /app
as the absolute path to your app). /app
root是heroku所做的事情(只需将第一个/app
解释为/app
的绝对路径)。 That's not the issue here, instead it's that you added a whitespace where no whitespace is allowed: 这不是问题,而是你添加了一个不允许空格的空格:
<%= form_tag (some, expression, here) do # breaks
<%= form_tag(some, expression, here) do # compiles
This shouldn't have worked on your machine in the first place (maybe previous Ruby versions accepted that Syntax, but Ruby 1.9 won't for sure). 这不应该在您的机器上工作(可能以前的Ruby版本接受了Syntax,但Ruby 1.9不能确定)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.