After freezing edge rails, all my controller examples are failing with MissingTemplate errors. e.g., "Missing template attachments/create.erb in view path app/views" Trying to actually render the views gives me the same error. I noticed I can fix most of them by using respond_do but I usually never use it. I almost always only need to respond to one format in one action so I omit respond_to and let Rails figure out which file to render. Will Rails no longer do this in 2.3? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Correction: I meant ''respond_to'', not ''respond_do''. On Jan 3, 11:17 pm, Rich <richpoir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> After freezing edge rails, all my controller examples are failing with > MissingTemplate errors. > e.g., "Missing template attachments/create.erb in view path app/views" > > Trying to actually render the views gives me the same error. > > I noticed I can fix most of them by using respond_do but I usually > never use it. I almost always only need to respond to one format in > one action so I omit respond_to and let Rails figure out which file to > render. > > Will Rails no longer do this in 2.3?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s trying to render a create view and generally create actions don''t have a view, they just redirect somewhere (probably to the object that was just created). Make sure in your controller that it''s definitely redirecting or doing *something* other than trying to render that view. ----- Ryan Bigg Freelancer http://frozenplague.net On 06/01/2009, at 9:53 AM, Rich wrote:> > Correction: I meant ''respond_to'', not ''respond_do''. > > On Jan 3, 11:17 pm, Rich <richpoir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> After freezing edge rails, all my controller examples are failing >> with >> MissingTemplate errors. >> e.g., "Missing template attachments/create.erb in view path app/ >> views" >> >> Trying to actually render the views gives me the same error. >> >> I noticed I can fix most of them by using respond_do but I usually >> never use it. I almost always only need to respond to one format in >> one action so I omit respond_to and let Rails figure out which file >> to >> render. >> >> Will Rails no longer do this in 2.3? > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It''s not just create, it''s seemingly all my actions. I just found this though: http://rails.lighthouseapp.com/projects/8994/tickets/1590-xhrs-require-explicit-respond_to On Jan 5, 6:28 pm, Ryan Bigg <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It''s trying to render a create view and generally create actions don''t > have a view, they just redirect somewhere (probably to the object that > was just created). Make sure in your controller that it''s definitely > redirecting or doing *something* other than trying to render that view. > ----- > Ryan Bigg > Freelancerhttp://frozenplague.net > > On 06/01/2009, at 9:53 AM, Rich wrote: > > > > > Correction: I meant ''respond_to'', not ''respond_do''. > > > On Jan 3, 11:17 pm, Rich <richpoir...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> After freezing edge rails, all my controller examples are failing > >> with > >> MissingTemplate errors. > >> e.g., "Missing template attachments/create.erb in view path app/ > >> views" > > >> Trying to actually render the views gives me the same error. > > >> I noticed I can fix most of them by using respond_do but I usually > >> never use it. I almost always only need to respond to one format in > >> one action so I omit respond_to and let Rails figure out which file > >> to > >> render. > > >> Will Rails no longer do this in 2.3?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---