Browse files

fix bug.....

  • Loading branch information...
1 parent bc1b320 commit 79716c2ab0188e0c8f233c249dc98f9c31e88a2e @sorah sorah committed Jan 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/accounts/_account.html.erb
View
2 app/views/accounts/_account.html.erb
@@ -30,7 +30,7 @@
<% if account.books.present? -%>
Books: &nbsp;
<% account.books.each_with_index do |book, i| %>
- <a href="http://www.amazon.<%= book.key.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.key %>"><%= i + 1 -%></a> &nbsp;
+ <a href="http://www.amazon.<%= book.isbn.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.isbn %>"><%= i + 1 -%></a> &nbsp;
<% end %>
<% end -%>
</span>

0 comments on commit 79716c2

Please sign in to comment.