When it comes to adding support for redo and undo in a desktop application, you’re typically going to implement the command pattern. There have also been successful attempts at implementing this behavior within the context of a web browser usually with a combination of JavaScript and caching.
If you’re working in the Rails world, there’s a really nice option for doing this with Paper Trail.
Ryan over at Railscasts and a great tutorial video for how to implement and use the the project.
- View the video here
- Check out the source code
- Grab a copy of Paper Trail
I also highly recommend bookmarking Railscasts – it’s arguably my favorite resource for Rails development.
Speak your mind...