Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Rei
@Rei
管理员
第 1 位会员 / 2011-10-28

[email protected]
深圳
194 篇帖子 / 9189 条回帖
733 关注者
0 正在关注
11 收藏
中下水平 Rails 程序员
打赏作者
GitHub Public Repos
  • writings 941

    [Closed] Source code of writings.io

  • alipay 731

    Unofficial alipay ruby gem

  • code_campo 289

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 102

    **no longer maintained**

  • geeknote 38

  • material-ui 17

  • htmlrenderer 12

  • rich-text-editor 12

  • rails-chatgpt-demo 8

  • llmrpg 7

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 如何使用 fontawesome at 2013年11月15日

    开浏览器调试,看看有读取 font-awesome 相关的 css 没,再看看内容,正不正常。

  • [已解决] mongoid 的短板?无法实现 accepts_nested_attributes_for 的 find_or_create 方式 at 2013年11月15日

    #7 楼 @hardywu 测试一下,我印象中就是没写入,但是实例看不出异常,立即使用可能会有 bug。

  • 如何使用 fontawesome at 2013年11月15日

    If you use Rails/Sprockets, add this to e.g. application.css.scss:

    *= require font-awesome

    这个做了没。

  • 如何使用 fontawesome at 2013年11月15日

    但配置了好久都不成功

    怎么不成功法

  • [已解决] mongoid 的短板?无法实现 accepts_nested_attributes_for 的 find_or_create 方式 at 2013年11月15日

    #5 楼 @hardywu 给 alias model 加唯一索引,重复写入的时候静默失败。

  • 如何用代码描述问题而不是过程式思考? at 2013年11月15日

    每个语言都有它的惯用法,多参考开源软件的源码。

  • [已解决] mongoid 的短板?无法实现 accepts_nested_attributes_for 的 find_or_create 方式 at 2013年11月15日

    有必要一定要用 nested_attributes 实现吗?

    foo = Foo.create params[:foo]
    params[:foo][:aliases].each { |alias_params| foo.aliases.find_or_create_by(alias_params) }
    
  • 想自己搭一个框架,删了 index.html 之后,就不知道怎么下手了,有没有人指导一下? at 2013年11月15日

    http://ruby-china.org/wiki/books

  • 并行赋值的使用场景 at 2013年11月14日

    #16 楼 @luikore 原来如此 👍

  • 这些冒号让我很困惑 at 2013年11月14日

    :name 的值就是 :name,我一开始都没想那么多。

  • 求助,也许是 linux 的问题 at 2013年11月14日

    Note: The Multi-User install instructions must be prefixed with the 'sudo' command. However, once the install is complete, and the instructions to add users to the rvm group is followed, the use of either sudo or rvmsudo is no longer required. The 'sudo' command is only to temporarily elevate privileges so the installer can complete it's work. If you need to use 'sudo' or 'rvmsudo' after the install is complete, some part of the install directions were not properly followed. This usually is because people execute the install as root, rather than executing the installation instructions from a non-privileged user account.

    这里说用 sudo 安装跟用 root 安装还不一样,root 会导致一些问题。

    正常 multi-user 模式是普通用户用 sudo 安装,然后将用户加到 rvm 组,之后不需要 sudo 或 rvmsudo。

    我建议是用 single-user 模式。

  • 求助,也许是 linux 的问题 at 2013年11月14日

    #17 楼 @shangrenzhidao 用 root 安装不是装在 root 下,而是装成 multi-user 模式。我现在都用 single-user 模式了,记不太清楚要怎么弄。

    root 是个特殊的用户,如果搞不清楚的话还是不要用,不过你可以趁机搞明白 root 和 sudo 跟 Linux 用户权限的问题。

  • 求助,也许是 linux 的问题 at 2013年11月14日

    Multi-User:

    The rvm function will be automatically configured for every user on the system if you install with sudo. This is accomplished by loading /etc/profile.d/rvm.sh on login. Most Linux distributions default to parsing /etc/profile which contains the logic to load all files residing in the /etc/profile.d/ directory. Once you have added the users you want to be able to use RVM to the rvm group, those users MUST log out and back in to gain rvm group membership because group memberships are only evaluated by the operating system at initial login time.

    https://rvm.io/rvm/install

  • 这些冒号让我很困惑 at 2013年11月14日

    #6 楼 @davidminaki 这更难理解了。

  • 并行赋值的使用场景 at 2013年11月14日
    _, date, urlname, _ = *filename.match(/\A#{tmp_path}\/_posts\/(\d+-\d+-\d+)-(.+)(\.[^.]+)\z/)
    

    解析 jekyll post 的文件名。

  • 松本行弘的新书《关于 mRuby 的一切》 at 2013年11月13日

    #31 楼 @fleuria 哈哈哈

  • 我去 难道只有我不能回复吗? at 2013年11月13日

    https://github.com/ruby-china/ruby-china/issues

    打开浏览器调试工具,看看提交的时候有没有错误。

  • 怎么不能回复了? at 2013年11月13日

    测试

  • 松本行弘的新书《关于 mRuby 的一切》 at 2013年11月13日

    👍

  • Rails 4 选书 Ruby on Rails 4.0 Guide vs. Rails 101 at 2013年11月12日

    Agile Web Development with Rails 4 http://pragprog.com/book/rails4/agile-web-development-with-rails-4

  • 大家对 django-cms 如何看?我感觉 diango cms 生态圈做的太好了。。 at 2013年11月12日

    #2 楼 @small_fish__ 我以前也觉得是两个东西。

  • 大家对 django-cms 如何看?我感觉 diango cms 生态圈做的太好了。。 at 2013年11月12日

    用 Jekyll

  • 有没有长文章分页、本页面显示全文的 gem at 2013年11月12日

    编辑插 <hr> 元素然后程序处理。

  • Ruby Hacking Guide 英文翻译完成 at 2013年11月12日

    #21 楼 @rasefon epub 是开放格式,mobi 只有 kindle 能看。

  • 关于 vagrant at 2013年11月12日

    #12 楼 @shangrenzhidao 不客气

  • 关于 vagrant at 2013年11月12日

    #10 楼 @shangrenzhidao 在 host 机编辑,在虚拟机装组件。目录同步,哪边工具方便用哪边。

  • 关于 vagrant at 2013年11月12日
    config.vm.network "public_network", ip: "x.x.x.x"
    

    启动卡住了看这里 https://github.com/mitchellh/vagrant/wiki/%60vagrant-up%60-hangs-at-%22Waiting-for-VM-to-boot.-This-can-take-a-few-minutes%22

  • 关于 vagrant at 2013年11月12日

    #2 楼 @shangrenzhidao 如果你的 host 主机有两个网络接口就需要指定 bridge,你的 host 主机有两个网络接口吗?

  • 关于 vagrant at 2013年11月12日

    http://docs.vagrantup.com/v2/networking/public_network.html

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