Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
王玉龙
@arc_start
会员
第 20068 位会员 / 2015-07-22

[email protected]
6 篇帖子 / 24 条回帖
0 关注者
1 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 向社区的朋友推荐自己的书《Rails 实践》 at 2015年09月16日

    谢谢无私奉献,再卡壳的小伙伴向您致意啊!!!

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月11日

    #11 楼 @diguage 那你也该告诉我下怎么解决.css 无特效吧……

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月11日

    #9 楼 @msg7086 恩,谢谢拉

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月11日

    #7 楼 @msg7086 有哦!一脸迷茫,能告诉我下部署的数据库再哪里吗..?

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月10日

    #4 楼 @huacnlee rake 拉,但是还是一样的...

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月10日

    #3 楼 @blacktulip 我是再本机部署,因为刚开始学,如果我部署再本机,那么部署的数据库文件会再部署的 app 中嘛?

  • Rails 在 production 环境下无法有 Bootstrap 效果,求解! at 2015年08月10日

    @blacktulip 意思是部署后文件会再这里产生是嘛?谢谢拉~ production: adapter: mysql2 encoding: utf8 database: Hack pool: 5 username: root password: "123456" socket: /var/run/mysqld/mysqld.sock

  • 启动 Nginx 成功,但是 deploy 的应用 500 Internal Server Error at 2015年08月09日

    #8 楼 @scriptfans 谢谢!

  • 启动 Nginx 成功,但是 deploy 的应用 500 Internal Server Error at 2015年08月09日

    #3 楼 @scriptfans 没办法显示呢,Cache COntroller 是我的应用目录嘛?下面那两个“”引号放空是嘛?谢谢回答~~

  • 启动 Nginx 成功,但是 deploy 的应用 500 Internal Server Error at 2015年08月09日

    #4 楼 @rei …我知道错了,以后会注意!

  • 启动 Nginx 成功,但是 deploy 的应用 500 Internal Server Error at 2015年08月09日

    #1 楼 @scriptfans 配置啦!我刚刚给文件夹权限,现在已经能推送上去了!但是 bootstrap 样式完全没有了!能问问怎么回事嘛?

  • NOmethod Error 新手求助啦。。。。 at 2015年08月07日

    @huacnlee @mouse_lin @zlx_star ,抱歉...不小心在 model 中添加了 validates:chat..把自己给过滤了

  • NOmethod Error 新手求助啦。。。。 at 2015年08月07日

    #7 楼 @zlx_star 。。。原来是这样定义的哈...有错误吗?

    private 
        def chat_params
            params.require(:chat).permit(:title, :desc)
        end```
    
  • NOmethod Error 新手求助啦。。。。 at 2015年08月07日

    #5 楼 @mouse_lin 。。。可是很多新手教学都是 create 再 save 不是吗...还是同样的错误呢,并没有用..

  • NOmethod Error 新手求助啦。。。。 at 2015年08月07日

    @huacnlee 恩!是的!

  • NOmethod Error 新手求助啦。。。。 at 2015年08月07日

    @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'
    
  • 关于 Heroku 的错误 log 显示缺失 sqlite3.h,请大家帮忙.... at 2015年07月31日

    #1 楼 @zillou #2 楼 @huacnlee 哈哈,知道为什么啦,就是要加 bundle install --without production

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English