Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
李华顺
@huacnlee
Admin
NO. 2 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
502 Topics / 9059 Replies
960 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1421

    A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuation...

  • rails-settings-cached 1106

    Global settings for your Rails application.

  • rucaptcha 696

    Captcha Gem for Rails, which generates captcha image by Rust.

  • zed-theme-macos-classic 98

    A macOS native style theme for Zed, let it same like native app in macOS.

  • vscode-macos-classic.t... 22

    macOS Classic theme for Visual Studio Code

  • zed-extension-action 20

    GitHub Action for automatically bump Zed Extensions version after a release.

  • autocorrect-action 11

    GitHub action for use AutoCorrect as lint

  • color-lsp 7

    A document color language server.

  • zed-autocorrect 6

    AutoCorrect for Zed

  • gpui-workspace 5

    Dock layout UI component for GPUI, that extracted from Zed project.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • asset pipline 怎么关闭混淆器? at November 05, 2012

    那不是混淆,那是 min 只是去了空白和注释之类不必要的字符从而达到节省流量的目的

  • 有人用 Bootstrap-IE6 做过东西么? at November 05, 2012

    非得 IE6 的场景还是自己写 CSS 吧

  • 有人用 Bootstrap-IE6 做过东西么? at November 05, 2012

    还是不要用了,卡得不行

  • [杭州][10 月 30 日] 杭州本周 Ruby Thursday at November 05, 2012

    #34 楼 @solomon_fc 可以的啊,任何人都可以参加的

  • 为什么我部署的 ruby-china 运行的这么慢? at November 05, 2012

    引用 @luikore 的话:

    没掌握核型技术

    肯定是哪里配置有大大的问题,Ruby China 这个程序,随便哪里跑起来也是一样的快

  • 同时保存多个记录,怎么区分校验的是哪个 at November 04, 2012

    @post.errors 里面的东西是个 hash , 验证不过的会在里面

  • 尼玛!下雪了 at November 03, 2012

    南方人羡慕啊

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    nav_link_helper.rb 里面的东西干掉!我靠,搞这么复杂的东西干嘛,你知道这些东西的作用么? 问题应该在于,干掉以后试试看行不行!

    def comparable_path_for(path)
      if @options[:ignore_params]
        path.gsub(/\?.*/, '')
      else
        path
      end
    end
    
  • undefined method `gsub' for nil:NilClass at November 03, 2012

    #17 楼 @w7938940 别截图啊,点开 Full Trace 看看里面的内容

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    #15 楼 @w7938940 我说错了,Rails 错误的时候,页面上有个详细的错误信息,把那个发出来看看

  • scss 编译错误 at November 03, 2012

    CSS 有语法错误,检查 application.css

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    Helper 的方式是给 View 里面调用的,你不应该在 Controller 或 Model 里面使用

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    #6 楼 @tiseheaini 这个得看日志

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    此外,楼主的这一行用法不对

    由<a href="/users/<%= post.user_id %>"><%= User.find(post.user_id).username %></a>发布于<%= post.created_at %>
    

    你应该

    <% if !post.user.blank? %>
    由 <%= link_to post.user.username, user_path(post.user_id) > 
    <% end %>
    发布于 <%= post.created_at %>
    

    还有 Controller 里面的排序,用 id desc 来代替 created_at desc 达到按照创建时间倒叙排列的做法效率将会更好!

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    仔细看了一下,也没发现问题,得帖 log 看看

  • undefined method `gsub' for nil:NilClass at November 03, 2012

    #2 楼 @tiseheaini link_to 是可以

    link_to post.title, post
    

    这么用的!

    Rails 会自动转换 post 为 post_path(post.id)

  • Linux 无联网情况下,如果安装 Ruby on Rails,谢谢 at November 03, 2012

    没网络还是算了吧,穷折腾,只会浪费生命

    为什么就不能上网呢?公司限制?

  • 请问一下关于 rake assets:precompile 的问题 at November 03, 2012

    application 之外的 js,css 需要在 production 里面定义预编译的,不然预编译不会处理他们

    比如 Ruby China 有 topics.css 和 topics.js 还有 notes.css 这些需要在 production 里面申明

    config.assets.precompile += %w(topics.css topics.js notes.css)
    
  • [杭州][10 月 30 日] 杭州本周 Ruby Thursday at November 02, 2012

    投简历啊

  • [求助] 社区的编辑器是怎么实现的? at November 02, 2012

    至于 Markdown 的处理见源代码里面的实现

  • [求助] 社区的编辑器是怎么实现的? at November 02, 2012

    Ajax 提交到服务端,服务端转换格式成 HTML,返回回来就好了呀

  • 关于读取手机通讯录 at November 02, 2012

    我看成直接从手机读取了

  • Linux 在线学习及问答网站上线,仿 Codecademy 和 Teamtreehouse 风格,大家拍砖~~ at November 02, 2012

    .net 不是好域名,成功的关键某些时候和名字也多少有些关系,哈哈哈

  • 为什么 Railscasts-china 放弃 42qu 的赞助并迁移回 Linode at November 02, 2012

    #32 楼 @Rei 很对。

    对于大家的批评,不断的解释只会让事情越来越糟糕。最好还是回一句"好吧,我的做法不妥,抱歉"或者保持沉默

    上次 V2EX 上面那个争论是否又拿到 Apple 职位邀请的时期就是一个前车之鉴。

  • 用 haml 的一种痛苦场景 at November 01, 2012

    CoffeeScript 和 Sass (应该是 SCSS) 一直在用,感觉很好

  • 取某个位置的数字的方法 at November 01, 2012

    字符串可以直接当数组用的,比如

    "1346"[3]

  • RubyChina 的 RoutingError 处理 at November 01, 2012

    render_404 这个方法我是用在一些需要强制显示 404 的场景

  • 我写的论坛软件现已开源:Rabel - PB2 on Rails at November 01, 2012

    #39 楼 @mobiwolf 安装的问题就不要在这贴上面回复了,在 Github 上面提交吧

  • RedisCaptcha at November 01, 2012

    验证码和 redis 有啥关系呢,用它存放的验证码字符信息么?

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