Sha256: a6b71fcf127183150428ffdca9cd28d192c74d63fd55d0fb8c4599a19a8803ea

Contents?: true

Size: 597 Bytes

Versions: 5

Compression:

Stored size: 597 Bytes

Contents

xml.instruct! :xml, :version => '1.0'
xml.rss(:version => '2.0') do
  xml.channel do
    xml.title 'Resources'
    xml.description 'Index of all resources.'
    xml.link resources_url(:rss)
    xml.lastBuildDate (@resources.first.created_at rescue Time.now.utc).to_s(:rfc822)
    xml.language I18n.locale
    
    @resources.each do |resource|
      xml.item do
        xml.title 'title'
        xml.description 'summary'
        xml.pubDate resource.try(:created_at).to_s(:rfc822)
        xml.link resource_url(resource, :rss)
        
        xml.author 'author_name'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grimen-dry_scaffold-0.2.2 generators/dry_scaffold/prototypes/views/builder/index.rss.builder
grimen-dry_scaffold-0.2.3 generators/dry_scaffold/prototypes/views/builder/index.rss.builder
grimen-dry_scaffold-0.2.4 generators/dry_scaffold/prototypes/views/builder/index.rss.builder
grimen-dry_scaffold-0.2.5 generators/dry_scaffold/prototypes/views/builder/index.rss.builder
grimen-dry_scaffold-0.2.6 generators/dry_scaffold/prototypes/views/builder/index.rss.builder