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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| What's the best way to DRY between edit and show? | 15 | 577 | October 4, 2006 | |
| different views for the same function | 4 | 117 | August 9, 2007 | |
| Sharing view between new and edit actions | 3 | 462 | November 13, 2008 | |
| Best practice: same "workflow", different context | 1 | 107 | May 30, 2008 | |
| Scaffold: What's the advantage of actions create/update? | 3 | 140 | March 24, 2008 |