Created
March 13, 2013 22:21
-
-
Save jwoertink/5156939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # string :url | |
| class Feed < ActiveRecord::Base | |
| validates :url, presence: true | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FeedsController < ApplicationController | |
| def show | |
| feed = Feed.find(params[:id]) | |
| @feed = Feedzirra::Feed.fetch_and_parse(feed.url) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment