Im trying do build a form using ajax.
I read this tutorial, but it is not clear to me.
I would like to submit a simple form and show the result in the same page without refresh a page. I do not have models in my application. I just wanna submit a form, make a request to a api and show the result back to the page.
If I use this for example:
<form method="post" action="/my_controller/my_action" class="button_to" data-remote="true" data-type="json">
<input type="text" ..>
<input type="text" ..>
<div><input value="Show" type="submit" /></div>
</form>
How can I get this values in my_controller and how can I show back to the view?
Thanks for any help