I have several records for which title
starts with:
- Nick1
- Nick2
- Nick3
- Othername1
How can I select all the records of which the title starts with "Nick" and have them rendered in the correct order? Something like:
@records = Record.where(title starts with: params[:title_name])
render json: @records