Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
xiao yingjie
@yingjie_xiao
会员
第 5091 位会员 / 2012-12-19

[email protected]
6 篇帖子 / 7 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 怎么将 Rails 4.1.1 降到 Rails 3.2.* at 2014年05月22日

    谢谢啦,各位,已解决,主要是要部署 redmine,它是需要有版本限制的,哈哈

  • 关于 options_for_select 的问题,求解 at 2013年08月23日

    谢谢

  • 关于 options_for_select 的问题,求解 at 2013年08月23日

    我想问的就是怎么动态的给 options_for_select 添加 option

  • [ruby on rails] 明明存到 hash 的为一个对象,怎么取出来就是一个 Array 啦 at 2013年02月01日

    #1 楼 @blacktulip Thank you inspired me, 问题解决了,我把取值的时候,用法出错了, error: 'usertimesheetMap.each do timesheet'

    'end' 哎,这不是 hash 的遍历值的方式,太弱智的错误了

  • 想请教下 ||=与=的区别,||=是在什么情况下使用比较合适 at 2012年12月20日

    class MyMap def []=(key,value) @status ||= [] @status << {key,value} end

    def item=@status.find{ |s|s.keys.first == key} item[key] end
    end

    m=MyMap.new m["key"] =123450 puts m["key"] 想请教下 item=@status.find{ |s|s.keys.first == key}中的 |s|s.keys.first == key 这个是什么用法

  • 哪位兄弟修改过开源项目 RedMine 的源代码 at 2012年12月20日

    #1 楼 @doun ||=与=有什么区别,||=在什么情况下使用,谢谢哦

  • 哪位兄弟修改过开源项目 RedMine 的源代码 at 2012年12月20日

    #2 楼 @small_fish__ 请教你个问题吧,||=与=有什么区别,||=在什么情况下使用,谢谢哦

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