notes: include search form on search results page.

Also eliminate /notes/search endpoint.
This commit is contained in:
evazion
2020-12-17 21:36:43 -06:00
parent 2c92794eba
commit 53653372ec
6 changed files with 9 additions and 24 deletions

View File

@@ -1,9 +1,6 @@
class NotesController < ApplicationController
respond_to :html, :xml, :json, :js
def search
end
def index
@notes = authorize Note.paginated_search(params)
@notes = @notes.includes(:post) if request.format.html?