title: Render partial not displayed
body: <p>I have rails apps where a user can <code>like</code> a <code>post</code>, a "like" link will change to "dislike" link (using render partial) when user clicked a "like" link, also it can create one record of <code>like</code> and it's works save to database, I can see partial have rendered on logs but partial not displayed on views also a "like" link removed.</p>
  
  <pre><code>Started POST "/like" for 127.0.0.1 at 2014-07-01 16:45:48 +0700
    ←[1m←[35mUser Load (1.0ms)←[0m  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  Processing by HomesController#create_like as JS
    Parameters: {"utf8"=&gt;"V", "authenticity_token"=&gt;"kRfosGW9Qsv3e8VH8MU/X/EyLVoJ/ya8T3Abwv7qNwg=", "like"=&gt;{"post_id"=&gt;"4"}}
    ←[1m←[36m (0.0ms)←[0m  ←[1mBEGIN←[0m
    ←[1m←[35mSQL (1.0ms)←[0m  INSERT INTO "likes" ("created_at", "post_id", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id"  [["created_at", Tue, 01 Jul 2014 09:45:48 UTC +00:00], ["post_id", 4], ["updated_at", Tue, 01 Jul 2014 09:45:48 UTC +00:00], ["user_id", 1]]
    ←[1m←[36mPost Load (1.0ms)←[0m  ←[1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 4 LIMIT 1←[0m
    ←[1m←[35mSQL (1.0ms)←[0m  UPDATE "posts" SET "count_like" = COALESCE("count_like", 0) + 1 WHERE "posts"."id" = 4
    ←[1m←[36m (1.0ms)←[0m  ←[1mCOMMIT←[0m
    ←[1m←[35mPost Load (1.0ms)←[0m  SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT 1  [["id", 4]]
    Rendered homes/_like_dislike.html.erb (0.0ms)
    Rendered homes/create_like.js.erb (6.0ms)
  Completed 200 OK in 42.0ms (Views: 31.0ms | ActiveRecord: 5.0ms)
  </code></pre>
  
  <p>When I tried to reload/refresh browser, "dislike" link is displaying.</p>
  
  <p>And this <code>_posts.html.erb</code> file</p>
  
  <pre><code>&lt;div class="perpost-content" id="&lt;%= dom_id(post) %&gt;"&gt;
      &lt;div class="perpost-body"&gt;&lt;p&gt;&lt;%= post.body %&gt;&lt;/p&gt;&lt;/div&gt;
      &lt;div class="perpost-footer"&gt;
          &lt;ul class="inline"&gt;
              &lt;li id="like_&lt;%= dom_id(post) %&gt;"&gt;
                  &lt;%= render 'like_dislike', :post =&gt; post %&gt;
              &lt;/li&gt;
              &lt;% if post.user_id == current_user.id %&gt;&lt;li&gt;&lt;%= link_to "delete", destroy_post_path(post), method: :delete, data: {confirm: "yakin akan dihapus?"}, :remote =&gt; true %&gt;&lt;/li&gt;&lt;% end %&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>_like_dislike.html.erb</code> file</p>
  
  <pre><code>&lt;% @base_secure = SecureRandom.urlsafe_base64 %&gt;
  &lt;% if post.liked_by? current_user %&gt;
      &lt;%= link_to "dislike", destroy_like_path(post.likes.where(:user_id =&gt; current_user.id).first.id), method: :delete, data: {confirm: "yakin akan dihapus?"}, :remote =&gt; true %&gt;
  &lt;% else %&gt;
      &lt;%= form_for Like.new, :url =&gt; { :action =&gt; "create_like" }, :html =&gt; {:id =&gt; "send_like_"+ @base_secure}, :remote =&gt; true do |f| %&gt;
          &lt;%= f.hidden_field :post_id, :value =&gt; post.id %&gt;
          &lt;%= link_to 'like', "#", :onclick =&gt; "$('#send_like_"+ @base_secure +"').submit()" %&gt;
      &lt;% end %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><code>create_like.js.erb</code></p>
  
  <pre><code>$('#like_&lt;%= dom_id(@post) %&gt;').empty().append('&lt;%= j render :partial =&gt; "homes/like_dislike", :collection =&gt; @post, :as =&gt; :post %&gt;');
  </code></pre>
  
  <p><code>create_like</code> action on <code>homes_controller.rb</code></p>
  
  <pre><code>def create_like
    @like = Like.new(params[:like])
    @like.user_id = current_user.id
    @like.save
    @post_id = params[:like][:post_id].to_i
    @post = Post.find(@post_id)
     respond_to do |format|
       format.js
     end  
  end
  </code></pre>