mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
19 lines
415 B
Ruby
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
|