Forum: Ruby on Rails format.atom w Rails 2.2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kad K. (Guest)
on 2009-01-27 17:10
(Received via mailing list)
in Rails 2.1, this works.. but I am stuck w Rails 2.2

class PostsController < ApplicationController
  def show
    respond_to do |format|
      format.atom { render :action => 'changes', :layout =>
false, :content_type => 'application/atom+xml' }

  def changes
    respond_to do |format|
      format.xml { render :layout => false, :content_type =>
'application/atom+xml' }

I have a view,  changes.xml.builder, building the xml code, but I got
a missing template as an error, when executing

ActionView::MissingTemplate (Missing template posts/changes.erb in
view path .../Projects/franchising/app/views:):
If I set a changes.erb, the xml code is sent...

how should I write that w Rails 2.2 ?

thanks a lot for your help

Kad K. (Guest)
on 2009-01-27 17:29
(Received via mailing list)
mistaken....   shoudl write  changes.rxml  and not xml.builder !!!
dawned copy/paste !!
This topic is locked and can not be replied to.