diff --git a/app/models/book.rb b/app/models/book.rb index a038946..47f0045 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -100,7 +100,7 @@ class Book pd_data = [] fields_to_show.collect do |t| - if page.custom_string_field == "table" + if !page.nil? && page.custom_string_field == "table" case t when "book_title" pd_data << { "data_title" => "#{p.book_title}" }