<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>z2323721 (dbsGen)</title>
    <link>https://ruby-china.org/z2323721</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>一个分享图片的小应用</title>
      <description>&lt;p&gt;这两天写来练手的项目，把百度网盘里面变成可以分享图片的图床。&lt;/p&gt;

&lt;p&gt;现在挂在这里 &lt;a href="http://myfb.mingp.net" rel="nofollow" target="_blank"&gt;http://myfb.mingp.net&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;代码放到 github 上面了 &lt;a href="https://github.com/dbsGen/myFB" rel="nofollow" target="_blank"&gt;https://github.com/dbsGen/myFB&lt;/a&gt;&lt;/p&gt;</description>
      <author>z2323721</author>
      <pubDate>Sat, 17 Aug 2013 20:39:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/13401</link>
      <guid>https://ruby-china.org/topics/13401</guid>
    </item>
    <item>
      <title>caches_action 的用法问题</title>
      <description>&lt;p&gt;caches_action :new, layout: false
    def new
       &lt;a href="/session" class="user-mention" title="@session"&gt;&lt;i&gt;@&lt;/i&gt;session&lt;/a&gt; = Session.new
       store_location request.referrer if request.referrer.present?
    end&lt;/p&gt;

&lt;p&gt;我的代码是这样写的，但是 Production 中回返回 404 页面。
报错是：&lt;/p&gt;

&lt;p&gt;ActionController::RoutingError (No route matches {:format=&amp;gt;nil, :controller=&amp;gt;"sessions", :action=&amp;gt;"new"}):&lt;/p&gt;

&lt;p&gt;没有 caches_action 的时候，页面是可以正常访问的。&lt;/p&gt;

&lt;p&gt;6.16&lt;/p&gt;

&lt;p&gt;这个是我找到的比较像的一个 
&lt;a href="https://github.com/raul/translate_routes/issues/22" rel="nofollow" target="_blank"&gt;https://github.com/raul/translate_routes/issues/22&lt;/a&gt;
但是他说 加了一句 
ActionDispatch::Routing::Translator.translate_from_file('config','i18n-routes.yml')
这个是应该 2.0，3.0 应该肿么写呢？&lt;/p&gt;</description>
      <author>z2323721</author>
      <pubDate>Sat, 15 Jun 2013 23:42:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/11747</link>
      <guid>https://ruby-china.org/topics/11747</guid>
    </item>
  </channel>
</rss>
