mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-11 18:38:50 -04:00
@@ -63,8 +63,16 @@ class CropsController < ApplicationController
|
||||
@crops = CropSearchService.search(@term,
|
||||
page: params[:page],
|
||||
per_page: Crop.per_page,
|
||||
current_member:).to_a
|
||||
respond_with @crops
|
||||
current_member:)
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
render
|
||||
end
|
||||
format.json do
|
||||
render json: @crops.to_a
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user