Update personal_books_controller.rb

This commit is contained in:
chiu 2019-08-15 10:19:55 +08:00
parent f76e785d9f
commit 6a2ef23e7b
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ class PersonalBooksController < ApplicationController
books_temp = Book.where(:is_hidden=>false).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] }
case params[:selectbox]
when "book_title", "extracted_chapters", "default"
if params[:selectbox] == "dafault"
search_temp = 'book_title'
if params[:selectbox] == "default"
search_temp = "book_title"
else
search_temp = params[:selectbox]
trans = params[:selectbox]