我正在尝试推送我的项目(所有文件都在新的存储库中).我按照步骤操作,但当我推进时,git push -u origin master我收到此错误:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:asantoya/projectnewbies.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)
很多次我得到这个错误,无法弄清楚该怎么做.
真的,我不知道发生了什么.对不起,如果这个问题是NOOB,但我找不到解决这个问题的方法.
-bash:rvm:找不到命令
我试过这个
curl -L https://get.rvm.io | bash -s - 最新版本
但仍然没有什么我需要看到ruby版本使用simplecov因为它不适用于1.9的旧版本
嗨再次我正在尝试将我的应用程序部署到heroku但我收到此错误:
We're sorry, but something went wrong.
Run Code Online (Sandbox Code Playgroud)
我不知道为什么会发生这种情况,我已经预先编译了资产
bundle exec rake assets:precompile
Run Code Online (Sandbox Code Playgroud)
如果你想在这里看到我的日志:
2012-08-13T16:03:42+00:00 app[web.1]: Started GET "/" for 190.242.128.66 at 2012-08-13 16:03:42 +0000
2012-08-13T16:03:42+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-08-13T16:03:42+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (1.7ms)
2012-08-13T16:03:42+00:00 app[web.1]: Completed 500 Internal Server Error in 87ms
2012-08-13T16:03:42+00:00 app[web.1]:
2012-08-13T16:03:42+00:00 app[web.1]: ActionView::Template::Error (highcharts.js isn't precompiled):
2012-08-13T16:03:42+00:00 app[web.1]: 5: <%= stylesheet_link_tag "application", :media => "all" %>
2012-08-13T16:03:42+00:00 app[web.1]: 6: <%= javascript_include_tag "application" %>
2012-08-13T16:03:42+00:00 app[web.1]: 7: <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" %>
2012-08-13T16:03:42+00:00 …Run Code Online (Sandbox Code Playgroud) 我只有 2 周的时间学习 ruby on rails,在我的应用程序中,用户可以注册他们的汽车,从他们的个人资料(下面的代码)应用程序发送到注册汽车页面,
<div class="container">
<fieldset>
<h1><%= @user.email %></h1>
<br>
<h2>now you are able to...</h2>
<br>
<ul>
<li>
<strong>new car registration: </strong>
<%= link_to "new car", new_user_car_path(current_user)%>
</li>
</ul>
</fieldset>
</div>
Run Code Online (Sandbox Code Playgroud)
它以前有效,但我不知道我做了什么,现在它显示了:
Routing Error
No route matches {:action=>"show", :user_id=>#<User id: 27, email: "armando.santoya@hotmail.com", encrypted_password: "$2a$10$EZtvPWiXgMfUlAqvuvGAzODMaas/y4rGkJPKJtg4PnC6...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2012-07-24 19:07:54", last_sign_in_at: "2012-07-24 19:07:54", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", name: nil, created_at: "2012-07-24 19:07:54", updated_at: "2012-07-24 19:07:54">, :controller=>"cars"}
Try running rake routes for …Run Code Online (Sandbox Code Playgroud)