<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <link>http://persumi.com/u/fredwu/tech/e/blog/t/patch</link>
    <generator>Persumi - Level up your writing and blogging with AI</generator>
    <category>Blog</category>
    <category>Tech</category>
    <pubDate>Fri, 01 May 2026 13:36:23 +0000</pubDate>
    <description/>
    <title>Blog (patch) - Fred Wu&apos;s Tech</title>
    <atom:link type="application/rss+xml" rel="self" href="http://persumi.com/u/fredwu/tech/e/blog/t/patch/feed/rss"></atom:link>
    <item>
      <pubDate>Wed, 17 Mar 2010 08:54:34 +0000</pubDate>
      <guid>http://persumi.com/u/fredwu/tech/e/blog/p/rails-mongomapper-on-rails-3-master-undefined-to-key-method</guid>
      <comments>http://persumi.com/u/fredwu/tech/e/blog/p/rails-mongomapper-on-rails-3-master-undefined-to-key-method</comments>
      <category>Blog</category>
      <category>Tech</category>
      <author>ifredwu@gmail.com (Fred Wu)</author>
      <description>&lt;![CDATA[&lt;p&gt;
Rails 3 has recently &lt;a href=&quot;http://github.com/rails/rails/commit/f81c6bc0404ba2a03eed0ec6c08bbac45661305f&quot;&gt;renamed &lt;code class=&quot;inline&quot;&gt;key&lt;/code&gt; method to &lt;code class=&quot;inline&quot;&gt;to_key&lt;/code&gt;&lt;/a&gt;, which consequently rendered &lt;a href=&quot;http://github.com/jnunemaker/mongomapper&quot;&gt;MongoMapper&lt;/a&gt; unusable.&lt;/p&gt;
&lt;p&gt;
You might see an error that looks like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ActionView::Template::Error (undefined method `to_key&apos; for #&lt;Post:0x000001066e4020&gt;)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
After some twiddling I’ve &lt;a href=&quot;http://github.com/fredwu/mongomapper/commit/6e5e531312ef98c30e33286a1f80dd000468ed07&quot;&gt;submitted a patch&lt;/a&gt; to address this issue. Feel free to pull my fork until the fix makes its way into &lt;a href=&quot;http://github.com/jnunemaker/mongomapper&quot;&gt;John Nunemaker’s main repository&lt;/a&gt;.&lt;/p&gt;
]]&gt;</description>
      <link>http://persumi.com/u/fredwu/tech/e/blog/p/rails-mongomapper-on-rails-3-master-undefined-to-key-method</link>
      <title>[Rails] MongoMapper on Rails 3 Master, Undefined &apos;to_key&apos; Method</title>
    </item>
  </channel>
</rss>