谢谢无私奉献,再卡壳的小伙伴向您致意啊!!!
#3 楼 @blacktulip 我是再本机部署,因为刚开始学,如果我部署再本机,那么部署的数据库文件会再部署的 app 中嘛?
@blacktulip 意思是部署后文件会再这里产生是嘛?谢谢拉~ production: adapter: mysql2 encoding: utf8 database: Hack pool: 5 username: root password: "123456" socket: /var/run/mysqld/mysqld.sock
#8 楼 @scriptfans 谢谢!
#3 楼 @scriptfans 没办法显示呢,Cache COntroller 是我的应用目录嘛?下面那两个“”引号放空是嘛?谢谢回答~~
#1 楼 @scriptfans 配置啦!我刚刚给文件夹权限,现在已经能推送上去了!但是 bootstrap 样式完全没有了!能问问怎么回事嘛?
@huacnlee @mouse_lin @zlx_star ,抱歉...不小心在 model 中添加了 validates:chat..把自己给过滤了
#5 楼 @mouse_lin 。。。可是很多新手教学都是 create 再 save 不是吗...还是同样的错误呢,并没有用..
@huacnlee 恩!是的!
@huacnlee 已贴,谢谢回复!XD
Started POST "/chats" for 127.0.0.1 at 2015-08-07 11:05:24 +0800
ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by ChatsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"jBWT5FEJAE6aRBUFtz7DNsVkaP9Bmvhl3B40AnfAKBN/Y/wvNX5ROHADkALzDHaXsohjM+qNAqGy1mEgfo2XJQ==", "chat"=>{"title"=>"fuck day", "desc"=>"恩,哦yeah"}, "commit"=>"submit"}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
(0.1ms) begin transaction
(0.0ms) rollback transaction
Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.9ms)
NoMethodError (undefined method `chat' for #<Chat:0x00000002c81ac0>):
app/controllers/chats_controller.rb:30:in `create'