<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>yfeng (大象爱吃肉嘎嘎)</title>
    <link>https://ruby-china.org/yfeng</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>现在大伙上 Rails 4 了吗？</title>
      <description>&lt;p&gt;如果是新项目，推荐用 4 还是之前的 3 系列呢？&lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Tue, 24 Sep 2013 14:08:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/14350</link>
      <guid>https://ruby-china.org/topics/14350</guid>
    </item>
    <item>
      <title>3.2.1 和现在的 3.2.9 区别大不？</title>
      <description>&lt;p&gt;公司不能上外网，不想手动更新了，如果区别不大就用 3.2.1 做开发了。&lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Tue, 13 Nov 2012 17:14:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/6730</link>
      <guid>https://ruby-china.org/topics/6730</guid>
    </item>
    <item>
      <title>关于 github 放私人项目问题</title>
      <description>&lt;p&gt;想问下，在 github 能否创建一个 public 的项目，但是只有自己或授权的用户可访问和修改？&lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Wed, 25 Jul 2012 14:09:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/4544</link>
      <guid>https://ruby-china.org/topics/4544</guid>
    </item>
    <item>
      <title>一台机器绑定多个域名问题</title>
      <description>&lt;p&gt;请教下，搞了个 aws...想一个服务器放 2 个网站，服务器是 Nginx + Passenger
我该如何配置某个域名指向某个项目目录呢，比如 www.xx.com 指向服务器上的 www.xx.com...  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 08 Mar 2012 23:37:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/1725</link>
      <guid>https://ruby-china.org/topics/1725</guid>
    </item>
    <item>
      <title>部署到生产模式的问题</title>
      <description>&lt;p&gt;部署到生产模式后，用 &lt;code&gt;rails s -e production&lt;/code&gt; 启动后，访问网站直接 500 错误。看 LOG 显示&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Started GET &lt;span class="s2"&gt;"/"&lt;/span&gt; &lt;span class="k"&gt;for &lt;/span&gt;127.0.0.1 at 2012-02-24 14:33:09 +0800
Processing by IndexController#index as &lt;span class="k"&gt;*&lt;/span&gt;/&lt;span class="k"&gt;*&lt;/span&gt;
  Rendered index/index.html.erb within layouts/application &lt;span class="o"&gt;(&lt;/span&gt;93.0ms&lt;span class="o"&gt;)&lt;/span&gt;
Completed 500 Internal Server Error &lt;span class="k"&gt;in &lt;/span&gt;608ms

ActionView::Template::Error &lt;span class="o"&gt;(&lt;/span&gt;style.css isn&lt;span class="s1"&gt;'t precompiled):
    2: &amp;lt;html&amp;gt;
    3: &amp;lt;head&amp;gt;
    4:   &amp;lt;title&amp;gt;www.test.com&amp;lt;/title&amp;gt;
    5:   &amp;lt;%= stylesheet_link_tag    "style","ingo"  %&amp;gt;
    6:
    7:   &amp;lt;%= csrf_meta_tags %&amp;gt;
    8: &amp;lt;/head&amp;gt;
  app/views/layouts/application.html.erb:5:in
`_app_views_layouts_application_html_erb___707863044_41318088'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;问题是 style.css 我已经加入到 product.rb 中需要 recompile 中了啊..&lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Sat, 25 Feb 2012 13:11:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/1415</link>
      <guid>https://ruby-china.org/topics/1415</guid>
    </item>
    <item>
      <title>devise 奇怪的问题</title>
      <description>&lt;p&gt;页面上一个 link_to...:method=&amp;gt;:delete
只要一调用，相当于被注销了，把我定位到登陆页面，把 delete 改成 get 就没问题，是否哪里还需要配置下？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 23 Feb 2012 16:42:59 +0800</pubDate>
      <link>https://ruby-china.org/topics/1390</link>
      <guid>https://ruby-china.org/topics/1390</guid>
    </item>
    <item>
      <title>关于 devise 中修改密码的 reset_password_token 问题</title>
      <description>&lt;p&gt;貌似直接/account/password/edit 进去修改密码提交会报 reset_password_token..不能为空的错误，我看源码需要传参数到 edit 中，如 /password/edit?reset_password_token=abcdef，但是我随便传后，保存肯定是失败，我看表中 reset_password_token 字段为空，于是我随便加了个东东，比如 abc，然后/password/edit?reset_password_token=abc 传入，保存提示失效了，请问这个东东该如何搞？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Mon, 20 Feb 2012 23:47:51 +0800</pubDate>
      <link>https://ruby-china.org/topics/1314</link>
      <guid>https://ruby-china.org/topics/1314</guid>
    </item>
    <item>
      <title>有兄弟玩 EC2 吗？</title>
      <description>&lt;p&gt;有个小网站帮别人做的，要托管到 EC2 上，对方给了个账户就不管了，这东东没搞过，昨晚弄了个 GENTOO 系统在上面，也不知道如何 SSH 上去，有没有兄弟搞过摆下。。  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Tue, 07 Feb 2012 15:05:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/1071</link>
      <guid>https://ruby-china.org/topics/1071</guid>
    </item>
    <item>
      <title>devise 用 username 作为验证的问题</title>
      <description>&lt;p&gt;一个应用中，前后台都用 devise 作为验证，前台是用的默认的 email，后台用 username，按照官方文档：
  Another way is to change your model:
    devise :database_authenticatable, :authentication_keys =&amp;gt; [:] 
 And then make the field accessible:
    attr_accessible :&lt;/p&gt;

&lt;p&gt;加了
 :authentication_keys =&amp;gt;[:username] 和  attr_accessible :username&lt;/p&gt;

&lt;p&gt;数据库字段和 new.html.erb 都把 相应的 email 改为 username 了，但是注册时候提交就报什么 email 不是一个方法这种错误，哪位遇到过，帮忙看看。谢谢  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Fri, 03 Feb 2012 10:48:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/1025</link>
      <guid>https://ruby-china.org/topics/1025</guid>
    </item>
    <item>
      <title>关于网站后台的问题..</title>
      <description>&lt;p&gt;想问下各位是把网站后台单独作为一个应用部署，还是和前台放在一起？
一般后台设置只允许内网访问？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Fri, 03 Feb 2012 09:36:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/1022</link>
      <guid>https://ruby-china.org/topics/1022</guid>
    </item>
    <item>
      <title>rvm 安装 1.9.3 的错误信息 (已解决)</title>
      <description>&lt;p&gt;ruby-1.9.3-p0 - #configuring 
Error running ' ./configure --prefix=/Users/yfeng/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/yfeng/.rvm/usr ', please read /Users/yfeng/.rvm/log/ruby-1.9.3-p0/configure.log
There has been an error while running configure. Halting the installation.&lt;/p&gt;

&lt;p&gt;这什么错误啊..  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 19 Jan 2012 22:26:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/907</link>
      <guid>https://ruby-china.org/topics/907</guid>
    </item>
    <item>
      <title>devise post 后无法获取 session 数据呢？</title>
      <description>&lt;p&gt;post 提交后，current_user 为 nil..get 却没问题，啥原因呢？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 12 Jan 2012 17:02:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/824</link>
      <guid>https://ruby-china.org/topics/824</guid>
    </item>
    <item>
      <title>关于 Devise 的使用问题</title>
      <description>&lt;p&gt;在注册页面，提交后报
TypeError in Devise::RegistrationsController#create 
nil is not a symbol&lt;/p&gt;

&lt;p&gt;啥问题呢？&lt;/p&gt;

&lt;p&gt;还有登陆时候，提交后没报异常，直接返回登陆页面，但是我看表里也没有记录登陆信息，用  user_signed_in? 返回 false。&lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Fri, 06 Jan 2012 13:51:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/758</link>
      <guid>https://ruby-china.org/topics/758</guid>
    </item>
    <item>
      <title>关于安装 bcrypt 的问题</title>
      <description>&lt;p&gt;gem install bcrypt-ruby-3.0.1.gem
ERROR:  Could not find a valid gem 'bcrypt-ruby-3.0.1.gem' (&amp;gt;= 0) in any repository&lt;/p&gt;

&lt;p&gt;不管下载 gem 包安装，还是通过网络安装都提示找不到..啥原因呢？被墙了？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 05 Jan 2012 11:58:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/740</link>
      <guid>https://ruby-china.org/topics/740</guid>
    </item>
    <item>
      <title>rails 有什么比较好的 上传插件呢？</title>
      <description>&lt;p&gt;推荐个吧，谢谢  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Wed, 04 Jan 2012 16:12:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/729</link>
      <guid>https://ruby-china.org/topics/729</guid>
    </item>
    <item>
      <title>关于删除问题</title>
      <description>&lt;p&gt;rails3，在列表上生成的删除链接，点了后自动进入 show 这个 action，请问如何解决呢？  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Wed, 28 Dec 2011 21:37:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/626</link>
      <guid>https://ruby-china.org/topics/626</guid>
    </item>
    <item>
      <title>哪位能推荐个 ror 主机？</title>
      <description>&lt;p&gt;或则比较好的 VPS，国内的哈  &lt;/p&gt;</description>
      <author>yfeng</author>
      <pubDate>Thu, 22 Dec 2011 21:16:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/566</link>
      <guid>https://ruby-china.org/topics/566</guid>
    </item>
  </channel>
</rss>
