<% if params[:user_watcher] %> $("#user_watch_list").html('<%= j(render :partial => "user_watcher_list") %>'); <% else %> $('#watchers').html('<%= escape_javascript(render(:partial => 'watchers/watchers', :locals => {:watched => @watched})) %>'); <% end %>