Build a RSS feed in Ruby on Rails : Lugo Labs

Building a RSS feed in Ruby on Rails is very easy, it feels like almost built in. We'll use the XML Builder handler that comes with Rails, so let's get started.

Let's assume we want to add the feed to our company blog, made of Article models. Each article has a title and a body property. The ArticlesController is a normal CRUD Rails controller; we'll add the feed to the index action, so let's update that now:

ruby

# app/controllers/articles_controller.rb class ArticlesController < ApplicationController def index @articles = Article.last(10) respond_to do |format| format.html format.rss { render :layout => false } end end end

The code above just removes the...

Read more


Website: http://www.lugolabs.com

Related topics : rails rss feed builder / rails rss feed reader / rails rss feed / rss feed reader code html / ruby on rails rss reader

Amtrak Route Podcasts

Amtrak, the National Park Service's Trails and Rails Program, and the Department of Recreation, Park and Tourism Sciences at Texas A&M University have created audio podcasts to enhance your travel experience on the Sunset Limited (New Orleans - Los Angeles) and Texas Eagle trains (Chicago - San Antonio - Los Angeles). The podcasts will act as your trip guide, providing you with information on the...

Read more


Website: http://amtrak.adventgx.com

Related topics : rss feed reader download mac / download rss feed reader for windows / rss feed reader download / windows phone rss reader feedly / rss feed reader windows phone

Rails-aggregator - A basic feed aggregator in Rails

Rails-aggregator - A basic feed aggregator in Rails

���� ��285

Blacklight - Discovery Interface for any Solr index

Blacklight is an open source OPAC (online public access catalog). It is ruby-on-rails based discovery interface (a.k.a. "next-generation catalog") especially optimized for heterogeneous collections. It could be used as a library catalog, as a front end for a digital repository, or as a single-search interface to aggregate digital content that would otherwise be...

Read more

Date: 2017-04-03 07:54:18
Website: http://www.findbestopensource.com

Related topics : rails feed aggregator / ruby on rails rss aggregator / rails rss aggregator / rss feed aggregator server / feed aggregator server

Railsovision - BitTorrent RSS Aggregator written with Ruby ...

Railsovision - BitTorrent RSS Aggregator written with Ruby on Rails

���� ��155

ROME

ROME is an set of Java tools for parsing, generating and publishing RSS and Atom feeds. The core ROME library depends only on the JDOM XML parser and supports parsing, generating and converting all of the popular RSS and Atom formats including RSS 0.90, RSS 0.91 Netscape, RSS 0.91 Userland, RSS 0.92,...

Read more

Date: 2017-04-03 07:54:26
Website: http://www.findbestopensource.com

Related topics : rss and atom feed aggregator / ruby on rails rss aggregator / atom rss aggregator / create rss feed aggregator / rss feed aggregator java