Home > rails > Verify if the element exists before replace_html

Verify if the element exists before replace_html

I tried many things before decide to extend the framework. But did not get stisfied with the avaliable solutions. So here it is.

Just put the code bellow in some initializer.

Author: murad Categories: rails Tags: , ,
  1. Joris
    November 10th, 2009 at 00:13 | #1

    Thank you!

  1. No trackbacks yet.