<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>rickyscott (他好像一条狗)</title>
    <link>https://ruby-china.org/rickyscott</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>关于 devise 的问题</title>
      <description>&lt;p&gt;#devise 关于 model 的问题，和跳转路径的问题
##关于 model 的问题
1.比如我现在创建一个 model(user).&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rails g devise backend/user
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然后的话我如果在 controller 中在&lt;code&gt;backend/application_controller.rb&lt;/code&gt;添加下面的代码&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;before_action :authenticate_backend_user!
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;接下来就跳错了
##关于跳转路径的问题
2.假设我现在已经能够进行登陆了，但是我现在 controller 中有这个目录&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;backend
它是专门放后台的 controller 的。但是我现在想让 devsie 登陆成功后跳转到&lt;code&gt;后台的首页&lt;/code&gt;,而不是&lt;code&gt;root页面&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>rickyscott</author>
      <pubDate>Mon, 03 Nov 2014 20:42:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/22443</link>
      <guid>https://ruby-china.org/topics/22443</guid>
    </item>
    <item>
      <title>有没有在页面上画柱状图的 GEM 啊</title>
      <description>&lt;p&gt;有没有在页面上画柱状图的 GEM 啊。。。
。。。。&lt;/p&gt;</description>
      <author>rickyscott</author>
      <pubDate>Tue, 03 Jun 2014 15:43:54 +0800</pubDate>
      <link>https://ruby-china.org/topics/19701</link>
      <guid>https://ruby-china.org/topics/19701</guid>
    </item>
    <item>
      <title>ckeditor 在本地能显示，但是跑到服务器上就显示不了了，</title>
      <description>&lt;p&gt;ckeditor 在本地能显示，但是跑到服务器上就显示不了了&lt;/p&gt;

&lt;p&gt;前端的代码：        = f.cktext_area :bookintroduction, :ckeditor =&amp;gt; {:language =&amp;gt; "zh-cn",:toolbar =&amp;gt; 'mini'},  class: "form-control"&lt;/p&gt;

&lt;p&gt;后端的话，按照 github 上边的教程来做的&lt;/p&gt;</description>
      <author>rickyscott</author>
      <pubDate>Tue, 03 Jun 2014 14:50:55 +0800</pubDate>
      <link>https://ruby-china.org/topics/19698</link>
      <guid>https://ruby-china.org/topics/19698</guid>
    </item>
  </channel>
</rss>
