Update personal_books_controller.rb
This commit is contained in:
parent
7f5e34934f
commit
c6058905fa
|
@ -63,7 +63,7 @@ class PersonalBooksController < ApplicationController
|
||||||
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
|
t << {"value" => "<a href='#{OrbitHelper.url_to_show(book.to_param)}'>#{book.create_link}</a>"}
|
||||||
end
|
end
|
||||||
when "publish_date", "publication_date"
|
when "publish_date", "publication_date"
|
||||||
t << {"value" => book.publication_date.strftime("%Y/%m/%d")}
|
t << {"value" => "book.publication_date.strftime('%Y/%m/%d')"}
|
||||||
when "author_type"
|
when "author_type"
|
||||||
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
||||||
when "language"
|
when "language"
|
||||||
|
|
Loading…
Reference in New Issue