Right now in my Rails 3 app I'm rendering partials using rjs in my controllers. For example, when saving a new item to a table, I refresh the table:
respond_to do |format|
format.js
{
render :update do |page|
page["#table_div"].html(render :partial=> 'table');
end
}
end
I'm really stuck on how I would go about keeping the same functionality, but moving away from the use of rjs. How can I accomplish this using jQuery, JSON and unobtrusive javascript? Thanks in advance!