Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
屎丸
@lithium4010
Member
NO. 8744 / 2013-08-19

上海
38 Topics / 613 Replies
11 Followers
47 Following
35 Favorites
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 写完了,天快亮了,81 页 at November 03, 2014

    期待分享~!

  • Docker 介绍以及其相关术语、底层原理和技术 at October 24, 2014

    层使得奋发 Docker 镜像变得简单和快速。debug 😆

  • 今天是梅西生涯十周年 at October 17, 2014

    巴萨球迷

  • [远程] 招聘 Rails 攻城狮 - 自由枪骑兵 at October 16, 2014

    顶一下

  • 自认为是一个靠谱的程序员,希望加入一个靠谱的团队 [锁] at October 14, 2014

    街道口职业技术学院 报到

  • [已结束] 苏州金鸡湖半程马拉松,有一起来玩的小伙伴么 at October 14, 2014

    diao bao, wo ye xiang pao ~

  • 给一个给定分隔符隔开的字符串,如何移除掉最后一个分隔符和之后的内容 at October 11, 2014
    def basename(s, m)
      s[0...s.rindex(m)]
    end
    
  • 这个结构怎么设计? at October 11, 2014

    本地化是展示数据的时候用的吗? 能不能给每个国家都写一个本地化的方法?

  • 想问个问题,你们为何选择 Rails? at October 10, 2014

    #6 楼 @lingceng It makes me happy too 😝

  • 如何实现一个类似 Facebook/ 人人网的添加好友系统? at October 10, 2014

    #6 楼 @zzz6519003 这样好像找某个人的所有好友这种比较方便吧😁 因为如果用一条数据来记录一个双向关系的话,如: (A1, B1) (A1, B2) (A1, B3) (B4, A1) 要找 A1 的所有好友:( select col2 where col1 = "A1" ) + ( select col1 where col2="A1" )

    如果记两条,就只用 select col2 where col1="A1" 了

    而且这样,可以知道什么 A 什么时候申请的 B 的好友,B 什么时候答应的

  • 如何实现一个类似 Facebook/ 人人网的添加好友系统? at October 10, 2014

    我想这么做。A 向 B 申请的时候建立一个(A,B)的关系数据行。B 同意了,就建立一个(B,A)的关系。否则直接删掉(A,B)的关系。

  • 来看看这个型男 at October 05, 2014

    教主?

  • 聊聊洁癖 at October 05, 2014

    喜欢前面的,讲清楚了是这个会员是作者

  • 一句話談 Ruby 入門的標誌 at September 27, 2014

    #16 楼 @heliang7 被击中了的感觉

  • [上海] 薄荷诚聘 Ruby 工程师 2~3 名 Change the women Change the world at September 27, 2014

    赞~~

  • rspec capybara 测试 js 问题 at June 24, 2014

    #5 楼 @billy 原因是开了 js 支持后,这个用例的上下文和之前用例的上下文不一样了,好象是新开了一个数据库(我也不清楚),数据库直接是空的。问题已经解决了。加上 gem 配置后不用修改测试代码。这是那个 js 驱动(selenium)的问题。。。。let!放更高一层是没有用的,之前就是这么做的。。文件中所有无关 js 的用例都能正常通过,而 js 的用例就好像开了一个新的环境一样,之前所有 FactoryGirl 的用户在数据库中都不存在。我在 let!后 puts User.any?结果是 false

    今天居然 stackoverflow 上找到了相同的问题(一楼有链接)

    I've read the Capybara readme at https://github.com/jnicklas/capybara and it solved my issue.

    Transactional fixtures only work in the default Rack::Test driver, but not for other drivers like Selenium. Cucumber takes care of this automatically, but with Test::Unit or RSpec, you may have to use the database_cleaner gem. See this explanation (and code for solution 2 and solution 3) for details.

    But basically its a threading issue that involves Capybara having its own thread when running the non-Rack driver, that makes the transactional fixtures feature to use a second connection in another context. So the driver thread is never in the same

  • rspec capybara 测试 js 问题 at June 23, 2014

    #3 楼 @algo31031 没有用 TAT

  • rspec capybara 测试 js 问题 at June 23, 2014

    #1 楼 @billy 没有用。。。。测试这个带 js 的用例的时候,会弹出一个 firefox 的窗口,然后自动进行填写用户的操作,但是 FactoryGirl 所创建的用户对象不能登陆

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #9 楼 @Kabie 弄好了,但我也不知道怎么好的。。。。

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    好像和问题无关啊~ssl 是因为本地没有 ssl 所以才出错的。直接跑 production 数据库版本不一样所以跑不了。dev 是 sqlite3 production 是 pg

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #14 楼 @hging 清除了 firefox 缓存以后 ssl 问题没有了,运行的是 development。估计运行 production 还是会 ssl 错误,但是在 heroku 上没有 ssl 问题

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #12 楼 @hging ssl 的换 chromium 就没有了,莫名 firefoxssl 出问题。。。。

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #8 楼 @hging SSL 接收到一个超出最大准许长度的记录。 (错误码:ssl_error_rx_record_too_long)

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #8 楼 @hging ssl 失败。。。

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #5 楼 @alsotang push 的是 master,我也是在 master 上改的。。。

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #5 楼 @alsotang 怎么检查呢?我现在再 push 到 heroku 就提示 everything-up-to-date

  • 移除 turbolinks 后,本地应用成功,但是 heroku 上还是没有移除 turbolinks,怎么办? at May 14, 2014

    #2 楼 @hging #1 楼 @alsotang

    push 到 github 上都能看到文件的改变了不应该是没有 push 上啊~

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