开发者

How to route a form post to PHP file from Rails?

开发者 https://www.devze.com 2023-01-12 13:22 出处:网络
I already have a php file that takes the contents of an html form that I\'ve now converted to Rails. I don\'t want to rewrite the php in rails but I\'m having issues posting to it. I put开发者_开发百科

I already have a php file that takes the contents of an html form that I've now converted to Rails. I don't want to rewrite the php in rails but I'm having issues posting to it. I put开发者_开发百科 the php file in the public directory and can access it if I type the address directly but when I submit a form with it as the action rails serves a 404 not found. How do I tell Rails to serve it from apache?

0

精彩评论

暂无评论...
验证码 换一张
取 消