Thanks Matt and Jon for your suggestions.

On Wed, Apr 15, 2009 at 4:37 PM, Jonathan Stott
<[email protected]> wrote:
>
> On Wed, 15 Apr 2009 16:14:00 -0400
> Rafael George <[email protected]> wrote:
>
>>
>> Hi guys, i'm creating a rss 2.0 feed with haml and merb for my
>> application and i have this as my view.
>>
>> It's working right now except for the link tags which i want to get
>> the entire url for it, check it out.
>>
>> SNIP template
>>
>> Thanks in advance.
>>
>> --
>> Rafael George
>>
> Hi
>
> You can use 'absolute_url'.
>
> As a few additional comments:
>
> You will want to html escape (with '&=') the title and description, as those 
> could, I imagine, contain XML characters (and thus could make the feed 
> invalid).  Perhaps also the author.
>
> In addition, 'guid' means GLOBALLY unique id.  So you should probably use 
> something other than the (presumably) serial id number bare, since '1' is 
> unlikely to be globally unique.  Perhaps you will want to use the link here, 
> too.
>
> Finally, I don't think Time#to_s produces an rfc822 valid date, so that 
> should be changed to something like 'Time.now.rfc822' or 'Time.now.httpdate'
>
> Regards,
> Jon
>
> >
>



-- 
Rafael George

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to