感谢阅读这篇文章.过去几天我一直坚持使用RoR的问题.我在index.html.erb下面有一个表单:
<head>
<title>Ajax List Demo</title>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
</head>
<body>
<h3>Add to list using Ajax</h3>
<% form_tag :action => :list , :method=>:get, :remote=>true do %>
Enter the public url:<%= text_field_tag 'url' ,'', :size => 80 %>
<%= submit_tag "Find" %>
<% end %>
<div id="my_list">
</div>
</body>
Run Code Online (Sandbox Code Playgroud)
在控制器中我有:
def list
puts "here!!!!"
reader = Reader.new
@profiles = reader.processURL(params[:url]) #profileList =
respond_to do |format|
#format.html { render :partial=>true, :locals => { :profiles => @profiles}}#{ render :partial=>'profiles/list',:layout => …Run Code Online (Sandbox Code Playgroud) 我有问题将新的git变更集推送到github存储库.首先,我克隆了我的本地更改,深度为1,以删除历史记录:
git clone --depth 1 file:///Users/kunal<path to project>
Run Code Online (Sandbox Code Playgroud)
然后我运行了一个git init远程添加和推送作为我克隆的目录内部:
> git init
> git remote add origin https://github.com/kp27/pymovie2.git
> git push -u origin master
Run Code Online (Sandbox Code Playgroud)
我看到文件上传,但后来我得到:
Counting objects: 7110, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3785/3785), done.
Writing objects: 100% (7110/7110), 7.60 MiB | 247 KiB/s, done.
Total 7110 (delta 2283), reused 7110 (delta 2283)
error: unpack failed: index-pack abnormal exit
Run Code Online (Sandbox Code Playgroud)
可能导致这种情况的任何想法?我的第一个猜测是1的深度导致它,但我不知道为什么.