title: Feedzirra Not Installed Properly?
body: <p>I'm trying to use Feedzirra in my Rails 3.2 app to do simple feed parsing. I found this online: <a href="http://asciicasts.com/episodes/168-feed-parsing" rel="nofollow">http://asciicasts.com/episodes/168-feed-parsing</a>. I followed the instructions there to install the gem, but I believe this instructions are somewhat out of date, since it refers to placing a <code>config.gem</code> line in my <code>config/environment.rb</code> file, which cannot accommodate such calls. I am getting an <code>uninitialized constant ApplicationController::Feedzirra</code> error and I'm not sure why.</p>
  
  <p>I put this code in my application controller:</p>
  
  <pre><code>before_filter :load_blog_feed
  
  def load_blog_feed
    feed = Feedzirra::Feed.fetch_and_parse(feed_url)
    @blog_posts = feed.entries[0...3]
  end
  </code></pre>
  
  <p>I placed this line in <code>config/application.rb</code>:</p>
  
  <pre><code>config.gem "pauldix-feedzirra", :lib =&gt; "feedzirra", :source =&gt; "http://gems.github.com"
  </code></pre>
  
  <p>Lastly, I placed this code in a view:</p>
  
  <pre><code>&lt;div id="blog_feed"&gt;
    &lt;% @blog_posts.each do |post| %&gt;
      &lt;p&gt;
        &lt;span class="post_title"&gt;&lt;%= link_to "#{post.title} &gt;&gt;", post.url %&gt;&lt;/span&gt;&lt;br&gt;
        by &lt;span class="post_author"&gt;&lt;%= post.author %&gt;&lt;/span&gt; on &lt;span class="post_date"&gt;&lt;%= post.published %&gt;&lt;/span&gt;
      &lt;/p&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>