You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
539 B

class DoctrinesController < ApplicationController
include DoctrineSearch
load_and_authorize_resource :doctrine, class: "Doctrine"
def index
@search = doctrine_search(search_params)
@doctrines = @search.results
respond_to do |format|
format.html
end
end
def search
@search = doctrine_search(search_params)
@doctrines = @search.results
respond_to do |format|
format.html
end
end
def show; end
private
def search_params
params.permit(subject_ids: [])
end
end