从 github 获取时,rails 3.2 代码不起作用
当我从 github 获取 Rails 项目时遇到问题。
当我克隆存储库并尝试从远程系统运行代码时,出现以下错误。
["ok","(function() {\n\n\n\n}).call(this);\n"]
(in e:/github_projects/myfork/TestRepo/TestProj/app/assets/javascripts/users.js.coffee)
提取的源代码(大约第 6 行):
3: <head>
4: <title>TestProj</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
我目前在 Windows 环境中使用 Rails 3.2.0。
为了测试它,我只创建了一个带有用户脚手架的简单 Rails 项目。
当我在迁移到 github 之前在本地系统中使用它时,它工作得很好。
谢谢,
玛尼
I am facing a problem when i fetched the rails project from github.
When i cloned the repository and try to run the code from a remote system, i got the following errors.
["ok","(function() {\n\n\n\n}).call(this);\n"]
(in e:/github_projects/myfork/TestRepo/TestProj/app/assets/javascripts/users.js.coffee)
Extracted source (around line #6):
3: <head>
4: <title>TestProj</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
I am currently using rails 3.2.0 in windows environment.
I have created only a simple rails project with user scaffold in order to test it.
Its working fine while i worked with that in my local system before moving to github.
Thanks,
Mani
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很奇怪,我可能建议您删除 user.js.coffee 中的所有内容并保存并重试。看来那里有一些错误的回报。
It's quite strange, I might recommend that you delete everything in the user.js.coffee and save it and try again. It looks that there's some wrong returns in there.