<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
This patch doesn't fix much but does two useful things:<br>
- issue a warning if there is no model annotation on the controller<br>
- check if the serialized object respond_to?(:author) before calling
#author<br>
<br>
>From looking at <a class="moz-txt-link-freetext" href="http://www.atomenabled.org/developers/syndication/">http://www.atomenabled.org/developers/syndication/</a> and
at the W3C validator it seems the biggest issues are:<br>
- id's should be complete IRI's (a superset of URI's). Relative URL's
are not valid.<br>
- the updated (timestamp) element is mandatory, both on the feed as on
the entries<br>
<br>
For the second thing I would assume this could be done to play nicely
with 'is Timestamped' ?<br>
<br>
As it stands this nice functionality is still undocumented, but for the
adventurous this might help you get started:<br>
<br>
class RandomController<br>
&nbsp; ann :self, :model =&gt; RandomThing<br>
<br>
&nbsp; def index<br>
&nbsp;&nbsp;&nbsp; @random_things = RandomThing.all<br>
&nbsp; end<br>
end<br>
<br>
class RandomThing<br>
&nbsp; attr :title, String<br>
&nbsp; attr :author, String<br>
<br>
&nbsp; def body<br>
&nbsp;&nbsp;&nbsp; "you need this method"<br>
&nbsp; end<br>
end<br>
<br>
app.dispatcher.root.random = RandomController<br>
<br>
go to <a class="moz-txt-link-freetext" href="http://localhost:9000/random.atom">http://localhost:9000/random.atom</a><br>
<br>
Have fun!<br>
<br>
(ab)<br>
<br>
Arne Brasseur schreef:
<blockquote cite="mid4719CC94.40208@arnebrasseur.net" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Try the W3C validator:
  <a class="moz-txt-link-freetext"
 href="http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.me.gr%2Fblog%2Findex.atom">http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.me.gr%2Fblog%2Findex.atom</a><br>
  <br>
It reports a few issues that you might want to solve before doing more
testing.<br>
  <br>
(ab)<br>
  <br>
George Moschovitis schreef:
  <blockquote
 cite="midafd80b540710200157s22dd1cc4s47968ce42a728985@mail.gmail.com"
 type="cite">Dear devs,<br>
    <br>
I am trying to make the atom serializer in raw/util/atom.rb work.<br>
I create a new simpler (and faster) version. This seems to work with
Google reader but It does not show any kind of summary<br>
in Firefox (when viewing the feed). <br>
    <br>
Here is an example:<br>
    <br>
    <a href="http://me.gr/blog/index.atom">http://me.gr/blog/index.atom</a><br>
    <br>
Can anyone on this list spot the problem(s) with this feed?<br>
    <br>
Please help me debug this once and for all. <br>
    <br>
thanks,<br>
George.<br>
    <br>
    <br clear="all">
    <br>
-- <br>
    <a href="http://gmosx.me.gr">http://gmosx.me.gr</a><br>
    <a href="http://phidz.com">http://phidz.com</a><br>
    <a href="http://blog.gmosx.com">http://blog.gmosx.com</a> <br>
    <a href="http://cull.gr">http://cull.gr</a><br>
    <a href="http://www.joy.gr">http://www.joy.gr</a><br>
    <a href="http://nitroproject.org">http://nitroproject.org</a>
    <pre wrap=""><hr size="4" width="90%">
_______________________________________________
Nitro-general mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a>
<a class="moz-txt-link-freetext"
 href="http://rubyforge.org/mailman/listinfo/nitro-general">http://rubyforge.org/mailman/listinfo/nitro-general</a></pre>
  </blockquote>
  <br>
  <br>
  <pre class="moz-signature" cols="72">-- 
Arne Brasseur
<a class="moz-txt-link-freetext" href="http://www.arnebrasseur.net">http://www.arnebrasseur.net</a>
<a class="moz-txt-link-freetext" href="http://www.zhongwiki.com">http://www.zhongwiki.com</a>
<a class="moz-txt-link-freetext" href="http://www.bankske.org">http://www.bankske.org</a>
<a class="moz-txt-link-abbreviated" href="mailto:arne@arnebrasseur.net">arne@arnebrasseur.net</a>
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nitro-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/nitro-general">http://rubyforge.org/mailman/listinfo/nitro-general</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Arne Brasseur
<a class="moz-txt-link-freetext" href="http://www.arnebrasseur.net">http://www.arnebrasseur.net</a>
<a class="moz-txt-link-freetext" href="http://www.zhongwiki.com">http://www.zhongwiki.com</a>
<a class="moz-txt-link-freetext" href="http://www.bankske.org">http://www.bankske.org</a>
<a class="moz-txt-link-abbreviated" href="mailto:arne@arnebrasseur.net">arne@arnebrasseur.net</a>
</pre>
</body>
</html>