Another implementation of pr_viewer by Rails