Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
themorecolor
@themorecolor
Member
NO. 4151 / 2012-10-21

[email protected]
上海
14 Topics / 158 Replies
1 Followers
0 Following
8 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 两种 where 查找,哪种更 Rails 风格一点? at July 16, 2015

    .markdown code 的 margin 去掉就 OK 了

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

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

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

    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 December 29, 2014

    https://github.com/cantino/huginn

  • ruby 中有把中文转换为字母的 gem 吗 at December 17, 2014

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

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

    #1 楼 @abc12345 赞。。。

  • 下面这个用的是啥模板技术? at November 09, 2014

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

  • Is Rails Slow? by Akira Matsuda at November 09, 2014

    涨姿势

  • 丰富的行业经验 at November 06, 2014

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

  • 分享 Inbox 邀请一枚 at October 31, 2014

    [email protected] 求

  • 新项目遇到一个小问题 大牛来讲解下 at October 24, 2014

    #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 October 22, 2014

    self.table_name = "xxoo"

  • [已解决] 怎样制作暂存按钮? at September 23, 2014

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

  • undefined method `each' for nil:NilClass at September 20, 2014

    先判断是否为空

  • Linux 下 Sunspot 全文搜索小记 at September 17, 2014

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

  • Sunspot 学习笔记 at September 16, 2014

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

  • Sunspot 学习笔记 at September 15, 2014

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

  • 这里有人关注 Mars One 这个项目嘛? at September 12, 2014

    。。。。。

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

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

  • RubyMine 总是突然退出了 at August 05, 2014

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

  • 项目部署 production 遇到一个问题,请教! at July 17, 2014

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

  • 【吐槽】关于头像的问题。 at July 05, 2014

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

  • 【吐槽】关于头像的问题。 at July 05, 2014

    @blacktulip ...

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

    #29 楼 @blacktulip +1024

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

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

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