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

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

Unlicense.org » Unlicense Yourself: Set Your Code Free

What is the Unlicense?

The Unlicense is a template for disclaiming copyright monopoly interest in software you've written; in other words, it is a template for dedicating your software to the public domain . It combines a copyright waiver patterned after the very successful public domain SQLite project with the no-warranty statement from the widely-used MIT/X11 license .

Why Use the...

Read more

Date: 2014-02-18 07:37:05
Website: http://unlicense.org

Related topics : linux rss feed reader command line / open source web based rss feed reader / rss feed reader software free download / linux rss reader command line / rss feed google chrome extension