How to return data from controller by AJAX?

Hi. I want to check duplication ID without changing URL or PAGE. So I use AJAX with jQuery. I send data to checking_id controller and if data exist, controller returns its table data. So I can write the form automatically. But controller cannot return data, and AJAX success: function(response) .... response is not defined. How can I return all table data from controller by AJAX..?

Posted over 4 years ago by lovings2u
Posted over 4 years ago by Alex Yang

I'm not sure what you're asking - it would help to have more context on what you're trying to do. What is duplication ID? What form/tables are you trying to return? Is this at all related to one of the BaseRails courses?