Re: [Rails] Service PHP in Rails

2015-06-28 Thread Colin Law
On 27 June 2015 at 20:50, Marco Dias wrote: > And how do I write these 11 lines > in Rails ? I'm pretty new to Rails. I suggest you start by working right through a good tutorial such as railstutorial.org (which is free to use online). That will show you the basics of rails. Colin -- You rece

Re: [Rails] Service PHP in Rails

2015-06-27 Thread Hassan Schroeder
On Sat, Jun 27, 2015 at 12:50 PM, Marco Dias wrote: > I have a small PHP service that is being called in a JavaScript file by AJAX : > I need to use this in my Rails application. I was wondering if I could > put the .php file in a Rails folder, and simply call it. No. > Or if there's a way to d

Re: [Rails] Service PHP in Rails

2015-06-27 Thread Walter Lee Davis
On Jun 27, 2015, at 3:50 PM, Marco Dias wrote: > I have a small PHP service that is being called in a JavaScript file by > AJAX : > >$.ajax({ >type: "GET", >url: "getDate.php", >dataType:"json", >data :{ > fromDate:fromDate, > toDate:toDate >}, >success: fu

[Rails] Service PHP in Rails

2015-06-27 Thread Marco Dias
I have a small PHP service that is being called in a JavaScript file by AJAX : $.ajax({ type: "GET", url: "getDate.php", dataType:"json", data :{ fromDate:fromDate, toDate:toDate }, success: function(data) { .. } }); This service co