<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Tag</title>
    <link>https://ruby-china.org/Tag</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Ruby Hacking 指南，为啥社区没人翻译这本书。</title>
      <description>&lt;p&gt;这本书，个人感觉，价值绝壁的比现在的《xxx 的开发》之类的书籍高很多，为什么没人翻译了呢。&lt;/p&gt;

&lt;p&gt;主要英文太差，不是母语果然看起来费劲！！！&lt;/p&gt;

&lt;p&gt;&lt;a href="http://ruby-hacking-guide.github.io/" rel="nofollow" target="_blank" title=""&gt;传送门&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;这本书值得收藏。&lt;/p&gt;</description>
      <author>Tag</author>
      <pubDate>Fri, 01 Jul 2016 10:27:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/30423</link>
      <guid>https://ruby-china.org/topics/30423</guid>
    </item>
    <item>
      <title>ROR 部署在 heroku 上面 index 的问题</title>
      <description>&lt;p&gt;我本地/public/index.html 文件时被我删除了的，
但是我部署到 heroku 上结果请求 这个页面还在？&lt;/p&gt;

&lt;p&gt;我的步骤如下。。&lt;/p&gt;

&lt;p&gt;hack@localhost ~: cd projectList/test
hack@localhost ~: heroku create myusertest
hack@localhost ~: git add .
hack@localhost ~: git commit -m 'first commit'
hack@localhost ~: git push heroku master
...
.....
.......这个这里报了个 sqlite 的错误解决办法
1、Gemfile 文件修改 gem sqlite3 为：&lt;/p&gt;

&lt;p&gt;gem 'sqlite3', :group =&amp;gt; [:development, :test]
group :production do
  gem 'thin'
  gem 'pg'
end&lt;/p&gt;

&lt;p&gt;2、删除掉 gemfile.lock 文件
3、运行 bundle install --without production
4、运行 git add .
5、运行 git commit -m "bundle updating sqlite3"
6、运行 git push heroku master&lt;/p&gt;

&lt;p&gt;开始不知道哪里有问题  反复的重新操作了很多次，,最后成功了
git add . 
git commit -m 'bundle updating sqlite3'
git push heroku master&lt;/p&gt;

&lt;p&gt;然后浏览首页 出现 index 的内容...
我在 routes 里面打开了 root :tp "index#index"&lt;/p&gt;

&lt;p&gt;public 的静态页面也删了的，,为啥还出现这个？&lt;/p&gt;</description>
      <author>Tag</author>
      <pubDate>Wed, 12 Dec 2012 12:04:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/7484</link>
      <guid>https://ruby-china.org/topics/7484</guid>
    </item>
    <item>
      <title>Gitosis 部署问题</title>
      <description>&lt;p&gt;我用 gitosis 部署服务器&lt;/p&gt;

&lt;p&gt;出现几个疑问。&lt;/p&gt;

&lt;p&gt;第一 部署完成后 不像网上所说的 通过 &lt;code&gt;git@host:project.git&lt;/code&gt; or &lt;code&gt;git@host:user/project.git&lt;/code&gt; 拉取项目
错误信息：&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@localhost:gitosis-admin.git
正克隆到 &lt;span class="s1"&gt;'gitosis-admin'&lt;/span&gt;...
fatal: &lt;span class="s1"&gt;'gitosis-admin.git'&lt;/span&gt; does not appear to be a git repository
fatal: The remote end hung up unexpectedly
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;必须通过 git@host:~/repositories/project.git 才能拉取项目&lt;/p&gt;

&lt;p&gt;另外如何配置 指定新项目放取目录。&lt;/p&gt;

&lt;p&gt;对这个服务的本身原理不太明白...&lt;/p&gt;</description>
      <author>Tag</author>
      <pubDate>Wed, 05 Dec 2012 00:36:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/7312</link>
      <guid>https://ruby-china.org/topics/7312</guid>
    </item>
    <item>
      <title>有人用过 grit 么</title>
      <description>&lt;p&gt;我在安装好 gem install grit 后&lt;/p&gt;

&lt;p&gt;在 Gemfile 中加载 gem "grit"
报 cannot load such file -- posix_spawn_ext 错误，&lt;/p&gt;

&lt;p&gt;*** LOCAL GEMS ***&lt;/p&gt;

&lt;p&gt;actionmailer (3.2.9, 3.2.5)
actionpack (3.2.9, 3.2.5)
activemodel (3.2.9, 3.2.5)
activerecord (3.2.9, 3.2.5)
activeresource (3.2.9, 3.2.5)
activesupport (3.2.9, 3.2.5)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.0.4, 3.0.0)
bundler (1.2.2, 1.1.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
daemon_controller (1.1.0)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
fastthread (1.0.7)
git (1.2.5)
grit (2.5.0)
hike (1.2.1)
i18n (0.6.1, 0.6.0)
io-console (0.3)
journey (1.0.4, 1.0.3)
jquery-rails (2.1.3)
json (1.7.5, 1.6.5)
libv8 (3.3.10.4 x86-linux)
mail (2.4.4)
mime-types (1.19, 1.18)
minitest (4.3.0)
multi_json (1.3.7, 1.3.6)
mysql (2.9.0)
passenger (3.0.18)
polyglot (0.3.3)
posix (0.0.5)
posix-spawn (0.3.6)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.2, 0.6.1)
rails (3.2.9)
railties (3.2.9, 3.2.5)
rake (10.0.1, 0.9.2.2)
rdoc (3.12)
sass (3.2.3)
sass-rails (3.2.5)
sprockets (2.2.1, 2.1.3)
therubyracer (0.10.1)
thor (0.16.0, 0.15.2)
tilt (1.3.3)
treetop (1.4.12, 1.4.10)
tzinfo (0.3.35, 0.3.33)
uglifier (1.3.0)
unit (0.4.1)&lt;/p&gt;

&lt;p&gt;以上是安装了的包&lt;/p&gt;

&lt;p&gt;一直每找到原因 网上也没搜到。。&lt;/p&gt;

&lt;p&gt;在 irb 下却能加载 require 'grit' =&amp;gt; true.
rails c
下面提示 cannot such file grit&lt;/p&gt;</description>
      <author>Tag</author>
      <pubDate>Sat, 24 Nov 2012 23:27:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/7072</link>
      <guid>https://ruby-china.org/topics/7072</guid>
    </item>
    <item>
      <title>`method_missing': undefined method `active_record'</title>
      <description>&lt;p&gt;/home/xxx/.gem/ruby/1.9.1/gems/railties-3.2.5/lib/rails/railtie/configuration.rb:85:in &lt;code&gt;method_missing': undefined method&lt;/code&gt;active_record' for #&lt;a rel="nofollow" target="_blank"&gt;Rails::Application::Configuration:0x8596908&lt;/a&gt; (NoMethodError)&lt;/p&gt;

&lt;p&gt;执行 rails s 报的错误，
最开始是  Could not find a JavaScript runtime.这个错误 我在 Gemfile 中添加 gem 'execjs' gem 'therubyracer' 后执行 出现这样的错误&lt;/p&gt;

&lt;p&gt;系统是 fedora 17
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-linux]&lt;/p&gt;

&lt;p&gt;$ rails -v
Rails 3.2.5&lt;/p&gt;

&lt;p&gt;有人遇到过吗？  &lt;/p&gt;</description>
      <author>Tag</author>
      <pubDate>Sat, 09 Jun 2012 11:54:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/3730</link>
      <guid>https://ruby-china.org/topics/3730</guid>
    </item>
  </channel>
</rss>
