Replace Div using rjs

http://stackoverflow.com/questions/5391451/how-to-replace-the-div-in-rails-3-using-ajax

Please refer this for Question.

I am not able to do Ajax in Rails 3.
Please reply to it.

Thanks,
-Aashish