scinote-web/app/controllers/design_elements_controller.rb
2024-01-19 10:52:07 +01:00

19 lines
415 B
Ruby

class DesignElementsController < ApplicationController
def index
end
def test_select
render json: { data: [
['1', 'One'],
['2', 'Two'],
['3', 'Three'],
['4', 'Four'],
['5', 'Five'],
['6', 'Six'],
['7', 'Seven'],
['8', 'Eight'],
['9', 'Nine'],
['10', 'Ten']
].select { |item| item[1].downcase.include?(params[:query].downcase) } }
end
end