Sha256: a255dbd01e7e85794a1ab14de80a960b287bfd4f23e6337f1b32997c19ed5879
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
xml.feed('version' => '0.3', 'xmlns' => 'http://purl.org/atom/ns#') do xml.title @title xml.link 'rel' => 'alternate', 'type' => 'text/html', 'href' => "#{@request.protocol}#{@request.host_with_port}#{@app_config['main']['app_base']}" xml.modified @posts.first.updated_at.xmlschema if @posts.first @posts.each do |p| xml.entry do xml.title p.subject xml.link 'rel' => 'alternate', 'type' => 'text/html', 'href' => "http://#{@request.host}#{@app_config['main']['app_base']}view/#{p.id}" xml.author { xml.name p.user.name } xml.issued p.created_at.xmlschema xml.modified p.updated_at.xmlschema xml.content({'type' => 'text/html', 'mode' => 'escaped'}, p.rendered) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
EliteJournal-1.9.400 | app/views/atom/feed.rxml |
EliteJournal-1.9.401 | app/views/atom/feed.rxml |
EliteJournal-1.9.403 | app/views/atom/feed.rxml |