Rails - initiate RSS feed from within application -


i following railscasts episode feed parsing.

http://railscasts.com/episodes/168-feed-parsing 

my model call article. want start rss feed when rails application initialized, make following call:

article.update_from_feed("http://feeds.feedburner.com/coindesk") 

in config/application.rb

however, when start server database error @ line saying article table not exist yet.

where should place code instead such article objects @ initialisation?


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -