≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1712

Bug #1712: Comment feeds on blog posts broken

Kind bug
Product wincent.dev
When 2010-10-15T13:12:43Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Noted in this comment: looks like it is rendering the HTML view instead of the XML one (incorrect), but skipping the layout (correct).

Example broken feed:

https://wincent.dev/blog/site-updates-0.25.atom

Other feeds are not affected (eg. issue comment feeds), so I suspect this is some routing-related devilry, new in the Rails 3.0 router.

Comments

  1. Greg Hurrell 2010-10-15T20:18:51Z

    Ok, have found the cause.

    In Rails 2.3.x it was enough to set params[:format] to 'atom' to override the format used at render time.

    In Rails 3.0.x you have to modify request.format.

  2. Greg Hurrell 2010-10-15T20:19:13Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets