in my controller file: require "RubyGems" require "feed_tools" def user_data @feed = FeedTools::Feed.open(params[:feed_url]) # You can first test it with a static feed url like this @feed = FeedTools::Feed.open('http://www.sphred.com/combined_feed') end Error in browser: You have a nil object when you didn't expect it! The error occurred while evaluating nil.link Extracted source (around line #105): 102: 103: <div> 104: <h3> 105: <a href="<%= h @feed.link %>"> 106: <%= @feed.title %></a> 107: </h3> 108: <p><%= @feed.description %></p>
|Timed out after 5000ms (Selenium::CommandError)||2||484|
|Is there a way to initalize a List<String> so that it is not null even if it has nothing in it?||3||745|
|What is Ruby programming?||7||418|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
22 Experts available now in Live!