Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
themorecolor
@themorecolor
会员
第 4151 位会员 / 2012-10-21

[email protected]
上海
14 篇帖子 / 158 条回帖
1 关注者
0 正在关注
8 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 两种 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。。。。结果被百度先一步

  • 分享 Inbox 邀请一枚 at 2014年10月31日

    [email protected] 求

  • 新项目遇到一个小问题 大牛来讲解下 at 2014年10月24日

    #1 楼 @serco 嗯 确实是在 development 下 应该是这样 找到这几篇文章 http://makandracards.com/makandra/20633-ruby-constant-lookup-the-good-the-bad-and-the-ugly

    http://urbanautomaton.com/blog/2013/08/27/rails-autoloading-hell/

  • 一个 Table 如何对应两个 class at 2014年10月22日

    self.table_name = "xxoo"

  • [已解决] 怎样制作暂存按钮? at 2014年09月23日

    submit button 也带 value 的 跟 input 一样的 可以在后端获取的

  • undefined method `each' for nil:NilClass at 2014年09月20日

    先判断是否为空

  • Linux 下 Sunspot 全文搜索小记 at 2014年09月17日

    #3 楼 @flowerwrong https://ruby-china.org/topics/21562

  • Sunspot 学习笔记 at 2014年09月16日

    #12 楼 @flowerwrong thx 一样探索中....

  • Sunspot 学习笔记 at 2014年09月15日

    sunspot_solr 不是开发环境用的吗?有 production 环境下的配置吗

  • 这里有人关注 Mars One 这个项目嘛? at 2014年09月12日

    。。。。。

  • 在文章中插入视频,浏览文章的时候如何实现视频播放? at 2014年09月12日

    试试 这个 https://github.com/videojs/video.js

  • RubyMine 总是突然退出了 at 2014年08月05日

    Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

  • 项目部署 production 遇到一个问题,请教! at 2014年07月17日

    #4 楼 @shin 先创建表啊 没表 怎么向表里加字段

  • 【吐槽】关于头像的问题。 at 2014年07月05日

    #15 楼 @lgn21st 看到你的头像 我瞬间明白了什么

  • 【吐槽】关于头像的问题。 at 2014年07月05日

    @blacktulip ...

  • 对于 sonrter 童鞋 “晚上加班不算加班?” 帖子的团 800 官方声明 at 2014年07月04日

    #29 楼 @blacktulip +1024

  • 在 RubyMine 中, application.js 中的 require 实时提示称找不到文件. at 2014年07月01日

    建议不要使用 IDE 使用记事本

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