Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixing bug of book links #29

Merged
1 commit merged into from

1 participant

@sorah
Collaborator

Fixing bug of book links. use isbn instead of key.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2011
  1. @sorah

    fix bug.....

    sorah authored
This page is out of date. Refresh to see the latest.
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>
Something went wrong with that request. Please try again.