app/controllers/article_threads_controller.rb
# special updating for article_thread
# adding new article to a_thread as responder
# params[:id] is supposed to be id of article to be responded
special updating for article_thread
adding new article to a_thread as responder
params[:id] is supposed to be id of article to be responded
special updating for article_thread adding new article to a_thread as responder params [ : id ] is supposed to be id of article to be responded
def adding_responder
    article = find_entity
    @thread = article.a_thread
    receive_and_set_background_params
    @display_mode = @background_params[:display_mode]
    @responder = article.responder(@thread, params[:responding_to])
    base_div_id = params[:base_div_id]    
    uuid = random_id  
    preparation_for_altering
    render :update do |page|  
       page.replace_html base_div_id, 
            :partial => "article_threads/responder", 
            :locals  => {:uuid => uuid},
            :object  => @responder
      end
  end
def adding_responder article = find_entity @thread = article . a_thread receive_and_set_background_params @display_mode = @background_params [ :display_mode ] @responder = article . responder ( @thread , params [ :responding_to ] ) base_div_id = params [ :base_div_id ] uuid = random_id preparation_for_altering render :update do | page | page . replace_html base_div_id , :partial => "article_threads/responder" , :locals => { :uuid => uuid } , :object => @responder end end
special updating for article_thread
adding new article to a_thread as responder
params[:id] is supposed to be id of article to be responded
special updating for article_thread adding new article to a_thread as responder params [ : id ] is supposed to be id of article to be responded
# id of div to add # generate random id