On Sat, Jun 27, 2015 at 12:50 PM, Marco Dias <li...@ruby-forum.com> 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 do a similar service in Rails?

Yes.

> And how do I write these 11 lines in Rails ? I'm pretty new to Rails.

This represents a pretty trivial exercise, so I'd recommend you tackle
it and post again if you have problems :-)

Good luck.
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDx5yFzAqKhLnoirk%3DM6aVideKw9Cio0%3DmTMwju1YppJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to