Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
涂亮
@tuliang
VIP
NO. 4482 / 2012-11-12

[email protected]
Alibaba Inc.
武汉
12 Topics / 198 Replies
16 Followers
19 Following
82 Favorites
GitHub Public Repos
  • tuliang.github.io 6

  • ruby-markdown 2

  • smart_tag 2

  • yun-deplpy 0

  • in-the-eyes 0

  • yun-deploy-rails 0

  • rails-nginx-docker 0

  • create 0

    create

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • js 太多,按需加载大家怎么处理 at July 22, 2013

    在 application.js 中不加载全部的 js

    //= require_directory .
    

    加载 js

    <%= javascript_include_tag "application" %>
    <%= yield :js %>
    

    在需要的页面再加载

    <%= content_for :js do %>
      <%= javascript_include_tag "site/wice_grid" %>
    <% end %>
    
  • 代码有些看不明,请前辈指点 at July 22, 2013

    这是 rails 的一个方法:

    # File actionpack/lib/action_controller/metal.rb, line 114
    def self.controller_name
      @controller_name ||= name.demodulize.sub(/Controller$/, '').underscore
    end
    

    https://github.com/rails/rails/blob/2948668bf1509941d7862362ed9c67b95f6cb155/actionpack/lib/action_controller/metal.rb#L114

  • 我與依依的橙色岁月 at July 10, 2013

    中途就感觉怪怪的

  • 查看你常用的 10shell 命令? at July 09, 2013
    4511 git
    792 cd
    439 rails
    383 ll
    382 bundle
    336 heroku
    243 thin
    139 sudo
    132 rake
    119 gem
    
  • 最近动画里扭来扭去的 ruby ... at July 08, 2013

    偶像大师!

  • 卖东西的现在也要来托管代码了: 京东开放代码托管平台 at July 06, 2013

    真逗

  • [杭州] 找两名初、中级 Rails 工程师 at July 01, 2013

    待遇挺给力的 帮顶

  • 大家都买房了么 at June 28, 2013

    #99 楼 @zealinux 刚需的话 前几年政府打压房价的几个时间段入手都很好 最近政府在教训银行 下一步可能就是房地产了 找机会入手吧 投资的话 还是多研究和找专业的咨询比较好

  • 盛安德武汉分公司 ruby 实习生应聘经历 at June 28, 2013

    其实和语言无关 楼主你现在的优势是学历 而外包公司一般不在乎学历 选择外包是下下之选

  • 盛安德武汉分公司 ruby 实习生应聘经历 at June 28, 2013

    http://ruby-china.org/topics/619?page=1 薪资范围:6k-12k

    对比看 很喜感

  • 大家都买房了么 at June 28, 2013

    居然还有这么多人相信房价会跌,中国城市化才刚过 50%,勉强达到世界平均水平,现在的趋势是向欧美发达国家的 75%,除非这个趋势能够改变,否则不会下跌。

    不相信现实,天天做梦,妄想一线城市下跌的,自己出门看看街上有多少人。了解一下自己所在的城市每年有多少新增人口,了解一下伦敦、东京、纽约这些城市的房价历史走势。别在做白日梦了,很多人一直在等,本来能买得起的也变得买不起了。

    真要我说在什么时候房价能下跌,那是 20 年后。一方面是人口减少的问题,很多人家庭结构是 421。另一方面是城市化达到一定程度,会出现逆城市化现象。

    论坛上大部分人对电脑、键盘这些几千块、几百块的深入研究、斤斤计较。反而不去了解,上百万,几百万,甚至攸关自己一生的事情。

    别做正常的傻瓜。

  • 盛安德武汉分公司 ruby 实习生应聘经历 at June 26, 2013

    好坑爹的感觉 和他们在招聘贴里面差好多

  • Ruby 开发收藏 at June 25, 2013

    +1

  • 未来这五年,软件工程师如何安身立命? (下) ——Ruby 之父松本行弘谈《代码的未来》 at June 24, 2013

    不错

  • 能谈谈你们现在的服务器环境和部署方式吗? at June 18, 2013

    heroku

  • 吐槽一下中文版《代码的未来》吧 at June 07, 2013

    还是等电子版好了

  • 求大家祝福啊羞 at June 01, 2013

    恭喜 感觉白活了

  • 相处很久的女朋友和别人在一起了,有经验的人有没有?出来安慰我两句 at May 25, 2013

    楼主不要难过了 我现在连初恋都没

  • [广州] 广州网易招聘 Ruby 程序员 at May 20, 2013

    我猜是去做 gitlab

  • Linode 信用卡信息泄露的幕后故事 at May 09, 2013

    不明觉厉

  • GitLab 搭建遇到的两个问题 克隆和 push pull 需要输入用户名和密码,只能采用 http 方式 at May 08, 2013

    换成 SSH 或者看http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github/5343146#5343146

  • RubyConfChina 2013 计划 at April 21, 2013

    在武汉 爱莫能助

  • Ruby 学习汇集,请推荐内容 at April 17, 2013

    支持汇总

  • [武汉] 创业团队招聘 Ruby on Rails 工程师 at April 16, 2013

    twitter, Facebook 不怎么用 只在上面做开发。人人,微博这些也基本不用,太碎片化了,而且垃圾信息也太多了。

  • Ruby on Rails Tutorial 2nd Edition 译毕 at April 14, 2013

    #116 楼 @andor_chen 已发 pull request

  • Ruby on Rails Tutorial 2nd Edition 译毕 at April 12, 2013

    代码 11.2 有误 需要改成

    require 'spec_helper' 
    
    describe 'Relationship' do
      let(:follower) { FactoryGirl.create(:user) }
      let(:followed) { FactoryGirl.create(:user) }
      let(:relationship) { follower.relationships.build(followed_id: followed.id) }
    
      subject { relationship }
      it { should be_valid }
    
      describe "accessible attributes" do
        it "should not allow access to follower id" do
          expect do
            Relationship.new(follower_id: follower.id).to 
              raise_error(ActiveModel::MassAssignmentSecurity::Error)
          end
        end
      end
    
      describe "follower methods" do
        it { should respond_to(:follower) }
        it { should respond_to(:followed) }
        its(:follower) { should == follower }
        its(:followed) { should == followed }
      end
    end
    
  • Ruby on Rails Tutorial 2nd Edition 译毕 at April 11, 2013

    已经购买,书很好,翻译也不错。找到几个错误: 代码 7.29 gravatar 的链接有误 需要改成

    gravatar_url = "http://1.gravatar.com/avatar/#{gravatar_id}.png?s=#{size}"
    




    代码 9.43

    password confirmation "foobar"
    

    应该为

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