I'm attempting to test a sample project at
http://162.243.232.223:3000/api/query
This is a rails project.
The rails controller is looking for a params hash like params[:query]['input']
In javascript, I am using jquery like this:
$.get('http://162.243.232.223:3000/api/query')
which get the expected default output.
However, I'd like to send in my own params more along the lines of this:
$.get('http://162.243.232.223:3000/api/query', { 'input': 'my_input' })
However, for whatever reason, this is returning errors, the
{ 'input': 'my_input' }
argument is not being passed as
params[:query]['input']
into Rails.
Any ideas on how I could start getting non-default responses back from Rails?
Thanks