Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Rei
@Rei
Admin
NO. 1 / 2011-10-28

[email protected]
深圳
182 Topics / 9132 Replies
727 Followers
0 Following
11 Favorites
中下水平 Rails 程序员
Reward
GitHub Public Repos
  • writings 940

    [Closed] Source code of writings.io

  • alipay 732

    Unofficial alipay ruby gem

  • code_campo 291

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

  • asciidoctor-pdf-cjk-ka... 101

    **no longer maintained**

  • asciidoctor-htmlbook 31

    Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook docu...

  • material-ui 17

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

  • rails-app 7

    A Rails project template lets me start new projects quickly.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 如何把 yml 文件的内容,按原版格式显示在 view 上 at February 14, 2015

    <pre></pre>

  • Ruby on Rails 教程 第 8 章 at February 13, 2015

    每次访问是独立的,所以要查一次;这样处理之后,在页面内多次调用也只查一次。

  • 关于使用 Capistrano 部署 Rails 应用的疑问 at February 12, 2015

    gem 'capistrano-rails' 依赖 gem 'capistrano',所以只写前面那个等同两个都写(除非指定版本)。

    其他扩展按需安装。capistrano 3 以后把核心精简了,没有内置 rails 相关任务,要用什么 require 什么。

    PS:不知道 capistrano-passenger 做了什么,我以前是自己写重启任务,只是 touch 一下,建议看看每个扩展的具体内容做了什么。

  • 敲代码的时候你应该听什么歌?“提神醒脑” 歌曲,吐血大推荐。 at February 12, 2015

    http://music.163.com/#/artist?id=20965

  • Rails 后台管理 at February 11, 2015

    database.yml 里面配置同一个数据库就行了,生成你要操作的 Model,内容为空。

  • ruby 小技巧 String.empty? with a default value at February 11, 2015

    我没看懂要做什么。

  • 大家是怎么写 nav link 的 css .active 的? at February 11, 2015

    我现在还是用这种模式:

    li class=('active' if condition)
    

    condition 可以是 controller_name == 'foo',也可以是 request.path =~ %r(^/foo),比较灵活。用了 slim 这里已经很简短了,所以不用写 helper。

  • 来斗鱼看逗逼程序员直接写 Ruby 代码 at February 11, 2015

    内部讨论都直播,会不会泄露商业机密啊。

  • ActiveSupport::Notifications 能异步吗? at February 10, 2015

    #3 楼 @hxh1246996371 http://chloerei.com/2014/12/15/foreman/

  • ActiveSupport::Notifications 能异步吗? at February 10, 2015

    http://guides.rubyonrails.org/active_job_basics.html

  • 关于 bundle 的一个弱弱的问题 at February 10, 2015

    Can't find the PostgreSQL client library (libpq)

    找不到 libpq 这个库,根据你安装 PostgreSQL 的方式不同,可能 libpq 是另外打包的,看看你安装 PostgreSQL 的方式的相关说明。

    例如在 Ubuntu 下,要:

    sudo apt-get install postgresql libpq-dev
    
  • 第一个 Rails 作品,日语爱好者的社区 at February 09, 2015

    #2 楼 @shellfly 帖子少的时候把最新回复放首页比较好。

  • 第一个 Rails 作品,日语爱好者的社区 at February 09, 2015

    仲么看不到内容,注册可见?

  • Nginx + Unicorn 多个虚似主机一个是 Rails App, 另一些如果不是 Rails App 怎么处理 at February 09, 2015

    http://wiki.nginx.org/ServerBlockExample

  • 测试 Gem 的时候如何让 require 'path/filename' 优先载入项目文件? at February 09, 2015

    试试 ruby -Ilib test/test_xxx.rb

  • 有没有类似于 java 体系图的 Ruby 体系图? at February 08, 2015

  • SelfStore,数字内容创作者的在线商店 at February 07, 2015

    #81 楼 @bati9999 加油!

  • layout nil 无法生效? at February 04, 2015

    贴代码。

  • (知乎)好的客服系统对 App 的影响究竟有多大? at February 04, 2015

    那么,在哪里可以买到呢?

  • layout nil 无法生效? at February 04, 2015

    layout false

  • git 不能 push 问题 at February 03, 2015

    翻墙了没?

  • 用 Kindle 看技术书籍靠谱么? at February 03, 2015

    #19 楼 @ugoa 不要人身攻击和爆粗口。

  • 关于在 erb 文件中,注释的一个错误提示! at February 03, 2015

    .html.erb,先用 erb 进行处理,erb 不管 HTML 的注释标签,直接找 <%。

  • 关于在 erb 文件中,注释的一个错误提示! at February 03, 2015

    编辑器右上角有插入代码的按钮

    <!-- <%= form_for @event, :url=> {:controller=>'events', :action=>'create'} do |f| %> -->
    <%= form_for @event, url => events_path do |f| %>
      <!-- <%= render :partial=>'form', :locals=>{:f=>f} %> -->
      <%= f.label :name, "Name" %></br>
      <%= f.text_field :name %></br>
    
      <%= f.label :description, "description" %></br>
      <%= f.text_area :description %></br>
      <%= f.submit "create" %>
    <% end %>
    
  • render locals 有点诡异--关闭 at February 02, 2015

    #3 楼 @yangman_wenzhu 打少冒号之类。

  • render locals 有点诡异--关闭 at February 02, 2015

    f t 这样的变量名过几天你还记得什么意思吗?

  • render locals 有点诡异--关闭 at February 02, 2015

    t 是个 helper, http://apidock.com/rails/v4.1.8/ActionView/Helpers/TranslationHelper/t

    换别的名字。

  • [北京 / 远程] 墨刀 (MockingBot) 招聘 Rails 全栈工程师 at February 01, 2015

    #50 楼 @welbyan 楼主可以联系一下,写个客户故事。

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