A
A
Andrey Korablin2015-10-21 11:27:56
Ruby on Rails
Andrey Korablin, 2015-10-21 11:27:56

How to call a php form in a RoR project?

There is a ruby ​​on rails project (ruby 2.2.1p85, rails 4.2.4, gem 2.4.8, rvm 1.26.11).
There is a php form for feedback. When calling this form, it throws the error "Failed to load resource: the server responded with a status of 404 (Not Found)".
What is the correct way to access php files from rails?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Elchev, 2015-10-21
@rsi

This may sound rude, but maybe it's not worth working with RoR if you don't understand something as simple as a feedback form? It's the foundation of the basics, handling post/get requests.
By the way, your form cannot be written in PHP. You have an HTML page with a form (front end), it is one for any language that is running on the server (back end). The form has fields (which is supposedly ).
When you press the send button, or whatever you call it, a post (well, or get, whatever you have configured) request goes to the server. The script in RoR that processes the request has access to the data that was filled in the form, the data filled in the form fields is available.
Read more hereThis applies to any form, because from a technical point of view there is no difference between a feedback form and any other form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question