AndyV wrote:
> There's really no magic here.  The default response to an update in
> the scaffolded controller is to redirect to the show event.  If you
> want to do something different (ie., the convention doesn't work for
> you) then go to the scaffolded controller and change it.  I'd guess
> you want to redirect to the show event of the parent (rather than the
> child).
> 
> On Nov 5, 11:08 am, John Small <[EMAIL PROTECTED]>

Yes, it's not magical. It's just a case of working through the changes, 
which I went ahead and did. I'd made it just that little bit more 
difficult for myself by trying to keep the old non-ajaxified actions 
running in parallel, which as you say redirect to the show in the child 
not the parent.

Mmmm since it's so general I wonder if it's possible to write a 
generator to implement the pattern, saves all that typing.

Thanks

John Small
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to