Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
クリップ詳細: テストが通るように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Dec 5, 2013
1 parent 97ff0f6 commit 3af62fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/base/_facebook_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like" data-href="<%= url_for only_path: false %>" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
<div class="fb-like" data-href="<%= url_for id: target ||= nil, only_path: false %>" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
2 changes: 1 addition & 1 deletion app/views/clips/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
li.twitter
== render partial: 'base/twitter_button'
li.facebook
== render partial: 'base/facebook_button'
== render partial: 'base/facebook_button', locals: { target: @clip }
li.mixi
== render partial: 'base/mixi_button'

Expand Down

0 comments on commit 3af62fa

Please sign in to comment.