<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>djks</title>
    <link>https://ruby-china.org/djks</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>每次我用 rake db:migrate 会有这样的提示 warning: already initialized constant RUBY</title>
      <description>&lt;p&gt;/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED&lt;/p&gt;

&lt;p&gt;我是用 apache+Passenger 配置的  &lt;/p&gt;</description>
      <author>djks</author>
      <pubDate>Sun, 18 Dec 2011 21:02:25 +0800</pubDate>
      <link>https://ruby-china.org/topics/523</link>
      <guid>https://ruby-china.org/topics/523</guid>
    </item>
    <item>
      <title>怎么切换数据库？</title>
      <description>&lt;p&gt;之前我使用的是 sqlite3
现在我想换成 mysql 的&lt;/p&gt;

&lt;p&gt;我把 database.yml 里面的信息改成了 mysql 之后还需要做什么才可以呢？  &lt;/p&gt;</description>
      <author>djks</author>
      <pubDate>Sat, 17 Dec 2011 23:11:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/516</link>
      <guid>https://ruby-china.org/topics/516</guid>
    </item>
    <item>
      <title>新手遇到 Action Controller: Exception caught,请教</title>
      <description>&lt;p&gt;提示信息是:
The action 'show' could not be found for CommentsController&lt;/p&gt;

&lt;p&gt;下面是 Comments 代码&lt;/p&gt;

&lt;p&gt;class CommentsController &amp;lt; ApplicationController&lt;/p&gt;

&lt;p&gt;http_basic_authenticate_with :name =&amp;gt; "admin", :password =&amp;gt;"password" , :only =&amp;gt; :destroy&lt;/p&gt;

&lt;p&gt;def create
    &lt;a href="/post" class="user-mention" title="@post"&gt;&lt;i&gt;@&lt;/i&gt;post&lt;/a&gt; = Post.find(params[:post_id])
    &lt;a href="/comment" class="user-mention" title="@comment"&gt;&lt;i&gt;@&lt;/i&gt;comment&lt;/a&gt; = &lt;a href="/post.comments.create" class="user-mention" title="@post.comments.create"&gt;&lt;i&gt;@&lt;/i&gt;post.comments.create&lt;/a&gt;(params[:comment])
    redirect_to post_path(&lt;a href="/post" class="user-mention" title="@post"&gt;&lt;i&gt;@&lt;/i&gt;post&lt;/a&gt;)
  end&lt;/p&gt;

&lt;p&gt;def destroy
    &lt;a href="/url" class="user-mention" title="@url"&gt;&lt;i&gt;@&lt;/i&gt;url&lt;/a&gt; = &lt;a href="/post" class="user-mention" title="@post"&gt;&lt;i&gt;@&lt;/i&gt;post&lt;/a&gt; = Post.find(params[:post_id])
    &lt;a href="/comment" class="user-mention" title="@comment"&gt;&lt;i&gt;@&lt;/i&gt;comment&lt;/a&gt; = &lt;a href="/post.comments.find" class="user-mention" title="@post.comments.find"&gt;&lt;i&gt;@&lt;/i&gt;post.comments.find&lt;/a&gt;(params[:id])
    &lt;a href="/comment.destroy" class="user-mention" title="@comment.destroy"&gt;&lt;i&gt;@&lt;/i&gt;comment.destroy&lt;/a&gt;
    redirect_to post_path(&lt;a href="/url" class="user-mention" title="@url"&gt;&lt;i&gt;@&lt;/i&gt;url&lt;/a&gt;)
  end&lt;/p&gt;

&lt;p&gt;end&lt;/p&gt;</description>
      <author>djks</author>
      <pubDate>Sun, 11 Dec 2011 22:15:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/444</link>
      <guid>https://ruby-china.org/topics/444</guid>
    </item>
  </channel>
</rss>
