Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7438701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:35:43+00:00 2026-05-29T10:35:43+00:00

I have an RSS Feed class, which holds the feed url, name, etc. and

  • 0

I have an RSS Feed class, which holds the feed url, name, etc. and I want to add a posts method to loop through each post in the feed and returns the results. I have the following code, but am getting many SystemStackError: stack level too deep errors.

class Feed
  field :name
  field :url

  belongs_to :project

  def self.posts
    results = []
    scoped.all.each {|f| results << RssFeed.get(f.name, f.url)}
    results
  end
end

My application has different Projects, and each project has many feeds. So in my code I’m trying to get all posts from all rss feeds that belong to a particular project like this:

project.feeds.cached

I am able to call scoped in my posts method which will return a Mongoid::Criteria but scoped.all.each or scoped.entries both return stack level too deep errors. I was wondering how I can access the project.feeds scope from within my posts class method?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:35:44+00:00Added an answer on May 29, 2026 at 10:35 am

    My silly mistake – cached is a reserved word.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ready RSS atom feed on my ASP.net site,but I want to
I have a website which includes this RSS JavaScript. When I click feed, it
I have the following rss feed which I would like to query to get
I have an rss feed that spits out plain html so I want to
I have a RSS feed i need to display in a table (its clothes
I have a shared site in sharepoint and have some RSS feed webpart in
I have a YouTube RSS feed set up to show YouTube videos in a
I have a dynamically generated rss feed that is about 150M in size (don't
I have this script to generate an XML file for an RSS feed. Works
I have a WCF service that uses a System.ServiceModel.Syndication.SyndicationFeed to create an RSS feed.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.