Ruby on Rails Blog Live Ajax Comments Previewing

It seemed strange to me that there was no default asynchronous comments on this web spiffy blog and I was never a huge fan of preview buttons myself so I hacked in a live preview! Go ahead and give it a whirl. This very simple code can be used for far more then the blog app typo that runs this site. It can observe any form you have on your sites or projects.

To implement it an your own blog, edit app/views/articles/_comment_box.rhtml and do the following: