Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (7 sloc) 223 Bytes
class BooksController < ApplicationController
def index
@categories = Book.all.order(:category).pluck(:category).uniq
@publishers = Book.all.order(:publisher).pluck(:publisher).uniq
@books = Book.all
end
end