mistaken.... shoudl write changes.rxml and not xml.builder !!!
dawned copy/paste !!
On 27 jan, 16:10, Erwin <yves_duf...-ee4meeAH724@public.gmane.org>
wrote:> 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
executinghttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---