Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
会员
themorecolor (themorecolor)
第 4151 位会员 / 2012-10-21
14 篇帖子 • 158 条回帖
1 关注者
0 正在关注
8 收藏
未设置 GitHub 信息.
  • 个人信息
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 热门话题
  • 最近回帖
  • 个人介绍
  • 分享 sunspot + solr 生产环境配置 ubuntu
    3 个赞 • 1 条回复
  • Rails 新项目遇到一个小问题 大牛来讲解下
    0 个赞 • 2 条回复
  • Mac 突然 出现 Mac 的终端 和 Term2 一段时间后 假死 必须得 关掉重新打开
    0 个赞 • 6 条回复
  • Mac Mac 下 Chrome Helper 和 FlashPlayer 进程 一直未响应
    0 个赞 • 3 条回复
  • Rails 在 rails api 里看到这样的代码 求问
    0 个赞 • 4 条回复
  • Ruby 我来发个简单问题 - Ruby 怎么求反正弦
    0 个赞 • 4 条回复
  • 新手问题 当 new 或者 edit 一个对象的关联对象时 怎么写 text 标签
    0 个赞 • 2 条回复
  • 新手问题 问一个问题 关于 validates 和 I18n 的 (已解决)
    0 个赞 • 9 条回复
  • Rails resource 中 member 和 collection 有什么区别吗
    0 个赞 • 6 条回复
  • 新手问题 几天以后怎么表示的
    0 个赞 • 6 条回复
  • Rails 有没有 关于 rails model 与数据表的关联定义 及查询的详细介绍资料啊
    0 个赞 • 1 条回复
  • 两种 where 查找,哪种更 Rails 风格一点? at 2015年07月16日

    .markdown code 的 margin 去掉就OK了

  • [已解决] 谁来解读一下 Rails 4.2.0 中的 respond_to 与 respond_with?诸如 redirect_to [:admin, @project] 怎么写? at 2015年01月16日

    #13楼 @hanluner #14楼 @Rei 有鬼

  • [已解决] 谁来解读一下 Rails 4.2.0 中的 respond_to 与 respond_with?诸如 redirect_to [:admin, @project] 怎么写? at 2015年01月16日

    Undocumented :location option

    You can use undocumented :location option to override where respond_to sends if resource is valid, e.g. to redirect to products index page instead of a specific product’s page, use:

    respond_with(@product, :location => products_url)  
    

    This is a nice way to add flash if you don’t have a any logic that needs to go around your flash.

    def destroy
      @current_user_session.destroy
      respond_with @current_user_session do |format|
        format.html {redirect_to login_path, notice: "You have been logged out"}
      end
    end
    
  • 通过浏览器 执行 后台任务 at 2014年12月29日

    https://github.com/cantino/huginn

  • ruby 中有把中文转换为字母的 gem 吗 at 2014年12月17日

    https://github.com/janx/ruby-pinyin

  • 【上海】招聘 ruby 开发工程师一枚,1-3年 工作经验 at 2014年11月24日

    #1楼 @abc12345 赞。。。

  • 下面这个用的是啥模板技术? at 2014年11月09日

    国产的有个 artTemplate 别的也有很多

  • Is Rails Slow? by Akira Matsuda at 2014年11月09日

    涨姿势

  • 丰富的行业经验 at 2014年11月06日

    #2楼 @wcp1231 #1楼 @hammer 我擦 我正在抄knewone。。。。结果被百度先一步

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