Unable to use feedzirra

158 views
Skip to first unread message

Sahitya ML

unread,
Mar 2, 2013, 9:24:39 AM3/2/13
to feed...@googlegroups.com


   Hello,
     I am new to ruby on rails. I would like to use feedzirra to parse a rss feed url.
    I have used the statement gem 'feedzirra' in gemfile and my controller is as follows

require 'rubygems'
require 'feedzirra'
  def self.update_from_feed(feed_url,g)
   puts feed_url
   puts g
   #  puts url
   f = Feedzirra::Feed.fetch_and_parse(feed_url)
  end

The bundle install runs with out any error
but the server results in the following error

LoadError (cannot load such file -- feedzirra):
  app/models/feedentry.rb:3:in `<top (required)>'
  app/controllers/feedentries_controller.rb:1:in `<top (required)>'


  Rendered /home/newscontext/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
  Rendered /home/newscontext/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.2ms)
  Rendered /home/newscontext/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.9ms)


Can some one kindly help me resolve this problem.



Thanking You

Sands

unread,
Mar 3, 2013, 9:55:13 AM3/3/13
to feed...@googlegroups.com

If this is a Rails app, you shouldn't need to require 'rubygems'.

I don't know how else to diagnose your problem with the information given, but it's strange that it mentions app/models/feedentry.rb in the error. Since this doesn't appear to be a specifically Feedzirra related problem, you might have better luck in a general Rails forum. I would include more exact code if you do that.

-S

--
You received this message because you are subscribed to the Google Groups "feedzirra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to feedzirra+...@googlegroups.com.
To post to this group, send email to feed...@googlegroups.com.
Visit this group at http://groups.google.com/group/feedzirra?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages