|
Re: resource_feeder feedback: msg#00215lang.ruby.rails.core
> I may have misunderstood or read too much into the use of :body in your > example. Taking a look at Mephisto, I see > > xm << %{<content type="html">#{sanitize_feed_content > article.body_html}</content>} > > Can you explain how :body was intended to work? That Mephisto code was put in place because I had entities being encoded twice. I think it had to do with Textile encoding ampersands, and then Builder was encoding it again. It's ugly, and is a good reason why I'm really interested in resource feeder. Rather than looping through the resources and creating atom entries, resource feeder lets you map attributes to atom elements. By default, it uses @resource.description to fill that in. If you provide :item => { :description => :body }, then it uses @resource.body. Finally, you can pass a block and customize it even further: :item => { :title => lambda { |r| ... } } # or in my mock feed dsl: entry.item do |resource| ... end > > I'm also discovering the importance of proper xml:base usage (or just > > converting relative links to absolute links): > > http://mephistoblog.com/assets/2006/9/26/SafariScreenSnapz003.png > > That's another one of the areas that is grossly underspecified with RSS > 2.0. If I read app/views/feed/_article.rxml correctly, the following > would address the issue: > > xm.entry "xml:base" => site.permalink_for(article) do ... Oh, I'll try that. Thanks. > - Sam Ruby > > P.S. Off topic for this mailing list, but I'm going to take a look at > importing my weblog into Mephisto. Be forewarned that I'm a tough > customer to please. I'm particularly unhappy about sites like > mephistoblog.com that purport to be XHTML, but aren't even well formed > XML as they contain strings like > > <a href="/tips">Tips & Tricks</a> Ouch! I have a Google Group setup at http://groups.google.com/group/MephistoBlog. I'd love to hear all about why Mephisto sucks :) -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: resource_feeder feedback, Michael Koziarski |
|---|---|
| Next by Date: | Re: resource_feeder feedback, Sam Ruby |
| Previous by Thread: | Re: resource_feeder feedback, Sam Ruby |
| Next by Thread: | Re: resource_feeder feedback, Thijs van der Vossen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |