Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
yeh kevin
@yeyong14
会员
第 5599 位会员 / 2013-02-04

[email protected]
上海
40 篇帖子 / 117 条回帖
3 关注者
8 正在关注
61 收藏
忘记背后,努力面前
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 准备着手翻译出版《Rebuilding Rails》,有人愿意买吗? at 2015年11月17日

    会买的

  • RubyConf China 2015 资源汇总 at 2015年11月03日

    受益匪浅啊,谢谢整理

  • 请教 Rails 如何取得浏览器显示的 url 而不是 request 的 URL? at 2015年09月11日

    我是这样,看下能不能帮到你

    <% unless request.original_fullpath == admin_dashboard_path %>
       <li><%=link_to t(params[:controller].split('/').last), controller: params[:controller]%></li>
     <% end %>
    
  • [上海] 猎乐科技招聘远程兼职 Rails 运维工程师 at 2015年07月21日

    @lgn21st 什么自行车,屁股不疼吗

  • [上海] 中智诚征信 招 Ruby/Rails 开发人员 at 2015年02月05日

    没有本科的学历,其他都满足,可以的吗

  • rails 里面如何 set angular js at 2015年02月03日

    问题具体一点

  • [上海][张江高科][微客来] 一大波 Rails 职位等你来…… at 2015年01月15日

    别人家的公司,不错

  • Array 迭代给 Hash 赋值的问题 at 2015年01月13日

    @chenge 是你吗,你最近在哪里吗

  • Array 迭代给 Hash 赋值的问题 at 2015年01月13日

    @saiga @serco 谢谢,确实是你们所说的这样。非常感谢你们的帮助

  • Array 迭代给 Hash 赋值的问题 at 2015年01月12日

    @chenge @serco 谢谢你们 解决了

    #先转成这样,可能其他有更好办法
    array = [[0,1], [1,2], [2,3], [3,4]]
    2.0.0-p481 :026 > new_hash = array.map!{|i| Hash[data.keys.zip(i)]}
     => [{:number=>0, :index=>1}, {:number=>1, :index=>2}, {:number=>2, :index=>3}, {:number=>3, :index=>4}]
    
  • has_many includes + where + select 如何组合查询 at 2014年12月15日

    @lionzixuanyuan 如何组合 model 中的方法查找

  • 一个赋值的问题,还希望大家指教 at 2014年06月26日

    @algo31031 @binbean1001 谢谢两位的指教,明白了,这个是一个公司的面试题,先让我写个斐波那契数列,然后他写了下面那个,问我两个不同点。用不是并行赋值在写一次斐波那契数列。看了两个赋值,还没有想过会这样,紧张就不知道怎么写了

  • 加载更多的功能如何实现? at 2014年06月10日

    @billy 谢谢点拨,经你这么一点,顿时明白了

  • 问个传递参数的问题,新手问题 at 2014年06月06日

    @messiahxu @Martin91 @liwei78 谢谢你们耐心的教导,我先用 includes,查询快多了。在配合 ajax。就可以做到按需加载

  • 问个传递参数的问题,新手问题 at 2014年06月05日

    @Martin91 还没有,中国那么多省市,一次查询当天本周当月很慢,试过 @messiahxu 的方法,不是很明朗,是我太笨的缘故吧

  • 问个传递参数的问题,新手问题 at 2014年06月05日

    @messiahxu 能给个思路吗

  • 问个传递参数的问题,新手问题 at 2014年06月05日

    @messiahxu 我看下,现在用了by_startgem 有内建的按时间查询的,想点击链接查询。

  • 问个传递参数的问题,新手问题 at 2014年06月05日

    @messiahxu 修改了,这样可以的吗

  • 问个传递参数的问题,新手问题 at 2014年06月05日

    @Martin91 有空看下的吗?

  • will_pageinate 分页插件的问题 at 2014年05月21日

    @huacnlee 谢谢。搞定了

  • render Layout 的提问,不能正确加载 at 2014年05月21日

    @lyfi2003 不是很明白你的意思,能否给点思路,不胜感激

  • render Layout 的提问,不能正确加载 at 2014年05月20日

    @lyfi2003 这个加载好像是在products/index ,没能加载到mobile/products/index下的文件

  • sql 语句 转成 activerecord 查询 at 2014年05月02日

    @chitsaou 谢谢,可以的

  • 多对多关系如何建立二维表 at 2014年05月02日

    @weichen0 请教一下如何才能实现,给点思路吧,谢谢

  • Array 和 Hash 的问题 at 2014年04月30日

    @skandhas 真是人才啊,真的很方便啊,谢谢

  • gem china_region_ru 拼音检索的问题 at 2014年04月09日

    @xuhao 我的是 3.2.13

  • 问一个新手提取文件名的问题 at 2014年02月18日

    @liprais @cassiuschen @iBachue 谢谢大家的帮助,搞定了,File.basename(pro.pdf_url)

  • 问一个新手提取文件名的问题 at 2014年02月18日

    @liprais NoMethodError: undefined method `split' for #PdfUploader:0xbbc5b50,现在就是不知道怎么从 carrierwave 中提取文件路径。

    pro.pdf
     => #<PdfUploader:0xbbc5b50 @model=#<Product id: 16, title: "fgkasgdhs", number: nil, pdf: "Ubuntu_MySQL.pdf", video: nil, color: nil, listtext: "", techparams: "", detail: "", created_at: "2014-01-14 00:21:45", updated_at: "2014-02-18 02:54:01", tag_id: 22, outline: "", category_id: 6>, @mounted_as=:pdf, @storage=#<CarrierWave::Storage::File:0xbbc5808 @uploader=#<PrintpdfUploader:0xbbc5b50 ...>>, @file=#<CarrierWave::SanitizedFile:0xbbc54ac @file="/home/york/yolift/public/uploads/product/ppdf/16/Ubuntu_MySQL.pdf", @original_filename=nil, @content_type=nil>, @versions={}> 
    
    
  • 问一个新手提取文件名的问题 at 2014年02月18日

    @iBachue no implicit conversion of pdfUploader into String

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