Quantcast
Channel: Create a Ruby feed of two un-related tables - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by MikeR for Create a Ruby feed of two un-related tables

I was able to get this working with a few small changes. Rather than rendering the partial I did the following<% @combined.each do |combined| %><% if combined.is_a?(Feed) %><h3><%=...

View Article



Answer by SteveTurczyn for Create a Ruby feed of two un-related tables

I'd suggest this... which is doing array sorting, but I think you don't have a choice with two unrelated object types.@combined = (@feeds.to_a + @questions.to_a).sort{|a,b| b.created_at <=>...

View Article

Create a Ruby feed of two un-related tables

I'm creating an app that has two sets of content that's unrelated. The first is Questions and Answers (Q&As) where a user can ask a question and the community can answer.The second is an RSS like...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images