Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
saiga
@saiga
Member
NO. 4375 / 2012-11-05

[email protected]
深圳
19 Topics / 701 Replies
14 Followers
1 Following
63 Favorites
请认准唯一指定邮箱:aiasfina#hotmail.com
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [已解决] 如何创建 PostgreSQL 的数据库 at May 08, 2014

    #6 楼 @chairy11 那就去干别的....

  • [北京] Ruby on Rails 高级工程师招聘 at May 07, 2014

    招聘是双向选择的。列一下你们能提供的条件,这样应该会多点人.. PS: 回复多的招聘贴一般会提供资薪上下限

  • 品类管理用什么 GEM? at May 06, 2014

    https://www.ruby-toolbox.com/categories/Active_Record_Nesting

  • 凑数 at May 06, 2014

    #20 楼 @bluexuemei http://v.163.com/special/opencourse/bianchengdaolun.html

  • 凑数 at May 05, 2014

    #15 楼 @yfractal 中兴 10 年面试题 http://blog.csdn.net/v_july_v/article/details/6419466

  • 凑数 at May 05, 2014

    #12 楼 @bluexuemei MIT 有一个系列课程《计算机科学及编程导论》,里面有讲到背包问题,动态规划和贪心算法,for python

  • 凑数 at May 05, 2014

    #11 楼 @yfractal 我就知道个名字,真让我写也写不出... _ (:з」∠)_

  • 凑数 at May 05, 2014

    #6 楼 @yfractal 就是 01 背包,动态规划破之

  • 求问,这个图片里的眼镜是啥? at May 05, 2014

    这个?

  • 初学 rails 到底学习哪个版本好,网上资源最多的是 3.2 的,官方最新的是 4.1 的? at May 04, 2014

    #10 楼 @sphawkcn @sphawkcn rails 更新快、插件多、国内冷淡使得本地化速度远远跟不上,如果英语的门槛难以逾越,建议还是慎重选择

  • nginx 无法停止 at May 03, 2014

    查查看 script 里面指向的 pid 是否正确,可能找不到 .pid 了

  • 请教 ActiveRecord 高手 at April 27, 2014

    #4 楼 @plusor 这个我记得如果 as 后面跟的不是存在字段名,rails 会给过滤掉

  • 求视频流媒体服务的 gem (已解决) at April 26, 2014

    流媒体服务推荐用 uPNP。推荐 minidlna,装好之后在配置文件里指定路径就 ok 了 http://blog.appdevp.com/archives/163

  • 一起来做题: Get config values of hash at April 25, 2014

    为了一行已丧病,只保证跑通上面四个等式 _ (:з」∠)_

    class Hash
        def get_value(default, *key_path)
            key_path.reduce(self) { |child, key| child.is_a?(Hash) ? child.fetch(key, default) : child }
        end
    end
    
  • 为什么好多 rails 项目的 html 采用 slim,例如 peatio. at April 25, 2014

    #17 楼 @aptx4869 这段代码是在很短的模板文件 admin.html.slim 中,加了个 partial 应该不会有多少改善。其实关键是逻辑与标签混在一起了,实在没办法一眼就区分出来

  • 创业失败的一些经验总结,顺便找一份工作 at April 25, 2014

    #6 楼 @CN_Boris 我也在玩 XD...不当副业,纯粹就爱好来玩。

  • 为什么好多 rails 项目的 html 采用 slim,例如 peatio. at April 24, 2014

    #7 楼 @zj0713001 习惯问题吧...不过说真的个人不认为这段代码可读性比 html 高

    codecampo

    #navbar.collapse.navbar-collapse
      ul.nav.navbar-nav
        li class=('active' if controller_name == 'users')
          a href=admin_users_path
            = t '.users'
        li class=('active' if controller_name == 'categories')
          a href=admin_categories_path
            = t '.categories'
        li class=('active' if controller_name == 'topics')
          a href=admin_topics_path
            = t '.topics'
        li class=('active' if controller_name == 'comments')
          a href=admin_comments_path
            = t '.comments'
        li class=('active' if controller_name == 'attachments')
          a href=admin_attachments_path
            = t '.attachments'
    
  • 为什么好多 rails 项目的 html 采用 slim,例如 peatio. at April 24, 2014

    #6 楼 @zealinux zencodeing 已经改名 emmet 了...不过看和写差太多了,写的爽歪看的蛋疼

  • 为什么好多 rails 项目的 html 采用 slim,例如 peatio. at April 24, 2014

    难道就我一个人觉得 slim 看得眼花缭乱吗 = = 改 codecampo 时痛不欲生.....

  • 一道 Ruby 题目 at April 23, 2014

    #8 楼 @Kabie = = 我咋没想到。不过还是没有实用价值.... _(:з」∠)

  • 一道 Ruby 题目 at April 23, 2014

    #6 楼 @swordray 一开始也想用类似的方法,不过产生的临时数组太恐怖了...

    Hash[keys.zip Array.new(keys.size, default_value)]
    
  • 一些方法在 rails 的 api 中找不到 at April 23, 2014

    join 是 Array 的方法,你应该找 ruby api,并且记住一些常用的 api。 不过猴子补丁的确给查询带来难度 (:з」∠)

  • 一道 Ruby 题目 at April 23, 2014
    def solution(keys, default_value)
      keys.reduce({}) { |hash, key| hash[key] = default_value; hash }
    end
    
  • 把字符串"1,2,3,4" 变为 (1,2,3,4) at April 22, 2014

    不要瞎试,否则这个大概正确的答案会伴随你几个月甚至几年。 你应该把 http://guides.rubyonrails.org/active_record_querying.html 看完,不要嫌长,否则谁也救不了你了.....

    ModelB.find ModelA.pluck(:id)
    
  • [已解决] 紧急求助,装不了 ubuntu 开不了 windows at April 21, 2014

    这个应该是 grub2,大概... Use grub rescue to boot from Windows XP partition, CD or USB 不行的话我也没法了....

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