search for: remote_replace_with_parti

Displaying 1 result from an estimated 1 matches for "remote_replace_with_parti".

2006 Apr 05
1
New AJAX function: remote_replace_with_partial() <-- write less code
I hate writing controller actions that support simple lightweight ajax calls like this: def show_buttons render :partial => "home_buttons" end So the birth of remote_replace_with_partial Now you can replace a div elements with any controllers partials and pass those partials any number of params without having to write supportive actions in your controllers. This is a great tool for UI changes on the fly and cancel buttons Heres the code: application_helper file: def re...