#1 楼 @chenge 谢谢,一下没反应过来。数据库里成功导入里,现在出现另一个问题。导入成功后无法 rake,一 rake 就说,
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'tuan_deal_comments' already exists
,但启动服务后又 ActiveRecord::PendingMigrationError Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development
然后就陷入死循环里了。。。
NoMethodError in Info#create
Showing /home/coldfarmer/rubyprj/sharedinfo/app/views/info/create.html.erb where line #4 raised:
undefined method `infos_path' for #<#<Class:0xb4866488>:0xa25bfd4>
Extracted source (around line #4):
<div class="row">
<div class="span6 offset3">
<%= form_for(@info) do |f| %>
<%= f.label :content %>
<%= f.text_field :content %>
<%= f.submit "Create a Message" , class: "btn btn-large btn-primary" %>