Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Newell
@zlx_star
VIP
NO. 2456 / 2012-06-07

杭州
71 Topics / 836 Replies
30 Followers
18 Following
34 Favorites
Ruby, Rust, .Net, 各种脚本爱好者
GitHub Public Repos
  • API-mock-server 25

    Full-Featured API Mock Server

  • useful_article 17

    the useful article

  • Gitlab-Hound 14

    Hound for Gitlab

  • qcloud-cos-sdk 8

    Ruby SDK for Qcloud COS

  • simple_form_bootstrap3 7

    Integration simple_form with bootstrap 3

  • tabletastic 3

    A smart table builder for Rails collections

  • raml-ruby-client-gener... 1

    Auto generate Ruby Client from Raml

  • love 1

    Website for our love

  • markdown 0

    Convert Markdown to HTML, with XSS protection

  • opentracing-ruby 0

    OpenTracing API for Ruby

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Rails controller 问题 at March 05, 2013

    #2 楼 @tangier 建议先把代码格式化,按 M 查看帮助

  • 你推荐哪些 gem? at March 05, 2013

    考虑增加到 http://ruby-china.org/wiki/gems ?

  • 我切割大 model 的方法 at March 05, 2013

    #12 楼 @linjunhalida 正解

  • 重构 Rails 项目之最佳实践 at March 05, 2013

    很赞,分享

  • rails -v 无法显示版本号 at March 05, 2013

    你的 rails 可执行命令没在 PATH 里面,你可以手动添加: PATH=$GEM_HOME/bin:$PATH

  • 有关 bootstrap 框架的问题 at March 05, 2013

    再加两句 <%= stylesheet_link_tag 'bootstrap.min' %> , <%= javascript_include_tag ‘bootstrap.min’ %>

    BTW:将代码格式化一下

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at March 05, 2013

    #26 楼 @yedingding 好啊,早就想见见本人了

  • 我切割大 model 的方法 at March 05, 2013

    #5 楼 @linjunhalida 提供一些代理方法可能会更好,比如 user.address 用起来比 user.displayer.address 更自然一点。像 rails 的 active_record query 一样。

  • 我切割大 model 的方法 at March 05, 2013

    #7 楼 @greatghoul 我自己胡乱翻译了一遍 重构臃肿 ActiveRecord 模型的 7 种方式

  • 我切割大 model 的方法 at March 05, 2013

    #2 楼 @chucai #5 楼 @linjunhalida 我看到 rails 4 里面默认有了两个 concern 的文件夹。请教 concern 的使用方法,有没有相关资料可以查看?

  • 我切割大 model 的方法 at March 05, 2013

    也可以参考一下 http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/

  • 请教一下关于 gotealeaf 的培训问题 at March 03, 2013

    #10 楼 @knwang ok, Thinks

  • 请教一下关于 gotealeaf 的培训问题 at March 02, 2013

    #8 楼 @knwang 谢谢。不知道上课需要什么样的英语水平?和 Railscasts 上面的视频相比如何?

  • 请教一下关于 gotealeaf 的培训问题 at March 01, 2013

    听说是全英文教学?这对于初学者是不是有点难度?

  • 请教一下关于 gotealeaf 的培训问题 at March 01, 2013

    这个,难倒我了 #1 楼 @bhuztez

  • 屏蔽 mkdir 系统信息 at March 01, 2013

    mkdir s 2>/dev/null

  • 学习 Rails 的心态 at March 01, 2013

    rails 是一个由一群专业人员为你设计的一套较好的 web 框架,它们根据自己的经验和知识打造了一款非常易用的框架(http://ruby-china.org/topics/7791)。所以,既然你要学习这套框架,必须按照它的习惯(或者说是约定来)来做,别的语言和框架只会限制你的思维,反而不利于学习 rails。ruby 也是一样。

    个人见解,社区高人不要见笑。

  • 学习 Rails 的心态 at March 01, 2013

    我觉得学习 Ruby 就像学太极拳:忘记其它语言就容易学了。

  • 可能是最酷的 github-page at February 28, 2013

    这个是怎么做的?纯 js 实现的吗?

  • Github 的一个 bug at February 28, 2013

    #4 楼 @hhuai 游戏说明: http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life 我仿照 daniel 的 http://railscasts-china.com/episodes/two-daniel-pair-live-show3 写的

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at February 28, 2013

    #6 楼 @lgn21st 还没有

  • [杭州][2013年3月5日] Ruby Tuesday 活动召集 at February 28, 2013

    感兴趣,安排在什么时候?

  • Github 的一个 bug at February 28, 2013

    恩,不过这样显示挺奇怪的,不是吗?

  • 使用 anjlab-bootstrap-rails 时,无法加载 css 样式 at February 28, 2013

    看看这个 https://github.com/anjlab/bootstrap-rails/issues/24

  • 使用 anjlab-bootstrap-rails 时,无法加载 css 样式 at February 28, 2013

    看上去好像是 $gridColumnWidth 这个变量不存在或者没赋值

  • Rails Tutorial 2nd Edition 中文翻译 at February 28, 2013

    可以提供 kindle 版吗?

  • 使用 anjlab-bootstrap-rails 时,无法加载 css 样式 at February 28, 2013

    提问:这让人怎么回答?没有环境,没有代码,没有报错信息

  • [已停止][上海] Ruby on Rails 程序员 (纯技术)[需有一年 开发经历] at February 27, 2013

    非常吸引人阿

  • 字符串 at February 27, 2013

    #2 楼 @vivayang 我按照你的情况测试了一下。

    Started GET "/blogs/new?link=blogs/new" for 127.0.0.1 at 2013-02-27 12:45:32 +0800
    Connecting to database specified by database.yml
    Processing by BlogsController#new as HTML
      Parameters: {"link"=>"blogs/new"}
    Redirected to http://www.buychina.devblogs/new
    Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
    "http://www.buychina.dev/blogs/new"
    
    
    Started GET "/blogs/new?link=/blogs/new" for 127.0.0.1 at 2013-02-27 12:45:45 +0800
    Processing by BlogsController#new as HTML
      Parameters: {"link"=>"/blogs/new"}
    Redirected to http://www.buychina.dev/blogs/new
    Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
    "http://www.buychina.dev"
    

    你可以看到,实际上 redirect 了两次,第一次是正确的,第二次由于没有带参数,所以 redirect to root

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