quinta-feira, 10 de janeiro de 2013

[Rails] Feedzirra and custom fields

When we read RSS on any programming language normally only the default fields are necessary, but sometimes a comment page link, a subtitle or other important info is stored into custom fields.

I was working with Rails and Feedzirra when this problem appeared to me and with the example+solution below I hope other people don't have to struggle much on this.

For a common rss you would use

And now the magic line to register article:subtitle...

So the final code should be

You can even map to field to same single resulting field, when you have two different sources with different subtitle fields for instance.

That solves the issue

Nenhum comentário: