Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
huxinghai
@kaka
高级会员
第 310 位会员 / 2011-11-29

湖南
20 篇帖子 / 156 条回帖
5 关注者
3 正在关注
8 收藏
程序猿
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • bb 真是坑多 at 2013年07月09日

    感觉 backbone 还好!没有那么惨

  • sublime text 跳到行首行尾的快捷键是什么 at 2013年06月29日

    home and end

  • 能谈谈你们现在的服务器环境和部署方式吗? at 2013年06月18日

    nginx+passenger capistrano +1

  • bootstrap_and_overrides.css.less 文件中写入自己的 less 没有效果? at 2013年06月18日

    还有你这贴没有多少人回,估计你没有把帖子的板排好!把你的代码格式调整好!

  • bootstrap_and_overrides.css.less 文件中写入自己的 less 没有效果? at 2013年06月18日
    @iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings.png")  !default;
    @import "twitter/bootstrap/bootstrap";
    

    这样看能行吗?把变量定义放到前面,并且加!default 参数

  • [福利] 七牛新后台上线 携手 Ruby China 放送现金券 at 2013年06月01日

    [email protected]

  • rails readonly 使用问题求解! at 2013年05月24日

    重写 readonly?方法可以 save 了

    #但是就是不知道之前这样不行,不知道为什么
    joins(...).where(...).readonly(false)
    

    #2 楼 @cantin

  • rails readonly 使用问题求解! at 2013年05月23日

    自己回复吧!现在暂时解决问题了 , 在模型加方法

    def  readonly?
        false
    end
    

    但是就是不知道为什么那样不行...

  • Ruby 访问 SQL Server 数据库的简单配置 at 2013年05月21日

    收藏 +1

  • Rails 时间显示的问题 at 2013年05月09日

    timeago 有 config

    https://github.com/rmm5t/jquery-timeago/blob/master/jquery.timeago.js

  • CoffeeScript:关于这里的 join (' ') --《深入浅出 CoffeeScript》p55 at 2013年05月06日

    实例变量

  • CoffeeScript:关于这里的 join (' ') --《深入浅出 CoffeeScript》p55 at 2013年05月06日

    console.log ('Trouble!' for i in [0..@count]).join(' ') 加个空格

  • 照片展示,Rails 内无故生成一张无内容照片 at 2013年05月04日

    这显示图片是没有存在啊! @photos这对象有东西....

  • CoffeeScript error: unexpected POST_IF at 2013年05月03日

    我是放到 coffeescript 官网编译... 可以通过

  • CoffeeScript error: unexpected POST_IF at 2013年05月03日
    odd=(num)->
       if typeof num is 'number'
          if num is Math.round num
             if num > 0
                num % 2 is 1
             else
                throw "#{num} is not positive"
          else 
              throw "#{num} is not an integer"
       else 
           throw "#{num} is not a number"
    

    哦,应该是你没有排好

  • CoffeeScript error: unexpected POST_IF at 2013年05月03日
    else
       throw "#{num} is not positive"
    else  #应该是end
    
  • 请教 ruby 的正则表达式可以换行吗 at 2013年04月13日

    #1 楼 @luikore 谢谢了,可以了

    没有注意看到这些参数了 /pat/i - Ignore case /pat/m - Treat a newline as a character matched by . /pat/x - Ignore whitespace and comments in the pattern /pat/o - Perform #{} interpolation only once

  • Capistrano 部署时没有生成 current 目录是什么原因? at 2013年03月12日

    #6 楼 @HanHor 如果部署失败会回滚的,会把项目目录删除(目录名类似 20130312042724) 你这部署问题应该是 bundle install 出错!

  • jquery-atwho.js 这里是不是有点问题! at 2013年03月06日

    #3 楼 @ichord 哦,我试试 0.1.7 的版本吧!

  • octopress 换了台电脑如何下载已配置好的环境 at 2013年02月20日

    rake setup_github_pages

  • jquery-chosen 选择框插件 at 2013年01月14日

    老刘在线直播啊...

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    我没有用 origin 这个 gem

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    #10 楼 @jjym

    Industry.where(:id => "503f06b7e13823df08000004").first
      MOPED: 127.0.0.1:27017 QUERY        database=neza_public_development collection=industries selector={"$query"=>{"_id"=>"503f06b7e13823df08000004"}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 fields=nil (0.6375ms)
     => #<Industry _id: 503f06b7e13823df08000004, _type: nil, created_at: 2012-08-30 06:22:47 UTC, updated_at: 2012-08-30 06:22:47 UTC, name: "**", alias_name: "***"> 
    
    
  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    #9 楼 @Rei 没有开启 identity_map_enabled

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    #7 楼 @cantin 我是用 mongoid

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    #5 楼 @hooopo 嗯!

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    #3 楼 @Rei https://github.com/lshgo/mongo_organizational 可能是转换模型 database 的问题吧!但是 where 怎么会没有查到呢!

  • ActiveRecord 得 find 有缓存嘛? at 2012年12月14日

    难怪了.. #1 楼 @Rei

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