title: How do i style a JSON feed in my view?
body: <p>My rails app gets the following <a href="http://api.mixcloud.com/alivefrommaryhill/feed/" rel="nofollow">JSON</a> feed from <a href="http://www.mixcloud.com" rel="nofollow">mixcloud</a> and sticks the results into my index page</p>
  
  <p>At the moment when I do this, the entire contents of my feed are displayed unformatted in one big blob of scary looking text (without the curly JSON brackets)</p>
  
  <p>I only want to display specific values from the feed in the view.</p>
  
  <p>From the <a href="http://api.mixcloud.com/alivefrommaryhill/feed/" rel="nofollow">feed in question</a> lets say for simplicity that I just wanted to display all values with a key of "url"</p>
  
  <p>In case I'm doing something wrong here's my code:</p>
  
  <pre><code># podcast controller
  def index
    # I'm using a class method to get the feed
    @feed = Podcast.feed
  end
  
  # podcast model
  def self.feed
    feed = JSON.parse(open("http://api.mixcloud.com/alivefrommaryhill/feed").read)
  end
  
  # index.html.haml
  .feed
    = @feed
  </code></pre>
  
  <p>I can't figure out how to style the results and display only certain items from the feed. Is my approach wrong?</p>