in Rails 2.1, this works.. but I am stuck w Rails 2.2 class PostsController < ApplicationController def show ...... respond_to do |format| format.html format.atom { render :action => 'changes', :layout => false, :content_type => 'application/atom+xml' } end end
def changes ........ respond_to do |format| format.xml { render :layout => false, :content_type => 'application/atom+xml' } end end .. end I have a view, changes.xml.builder, building the xml code, but I got a missing template as an error, when executing http://localhost:3000/posts/show/5 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 erwin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---