annotate app/views/tweets/show.atom.erb @ 94:0c8a8b390145

Now with epic caching And kicking out builder because I can't figure out how to cache it ;_;
author nanaya <me@myconan.net>
date Thu, 28 Jul 2016 03:49:08 +0900
parents
children dfd7daac110e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
3 <id>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4 tag:<%= request.host_with_port %>,2005:<%= @user.id %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
5 </id>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7 <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
8 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
9
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
10 <title>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
11 <%= @user.name %> (<%= @user.screen_name %>)
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
12 </title>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
13 <icon>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
14 <%= @user.profile_image_url_https %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
15 </icon>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
16 <updated>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
17 <%= @tweets.first.try(:created_at) || Time.at(0) %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
18 </updated>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
19
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
20 <%= render(:partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id }) %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
21 </feed>