Forum: Ruby on Rails Nested Templates

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.
ref3at (Guest)
on 2009-04-23 11:09
(Received via mailing list)
I want the user to be able to toggle between view and edit modes
within the same page without having to request a different page for
each. I know I could just copy the code from my edit.html.erb page to
the show.html.erb but that wouldn't be DRY. Are there DRYer
approaches? Is there a way of "calling"/"nesting" my edit template in
the show template.
This topic is locked and can not be replied to.