Growstuff/growstuff

View on GitHub
app/views/crops/index.rss.haml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
%rss{ version: 2.0 }
  %channel
    %title Recently added crops (#{ENV['GROWSTUFF_SITE_NAME']})
    %link= crops_url
    - @crops.each do |crop|
      %item
        %title= crop.name
        %pubdate= crop.created_at.to_fs(:rfc822)
        %link= crop_url(crop)
        %guid= crop_url(crop)