I have developed a project in radrails and it works fine on my computer. When I uploaded the project to my website I can call the first page that is html and it displays it properly. It has a link to a rhtml page, and the calling rhtml page justs display the source code of the page. What does ROR do and how can I get it to execute a rhtml page with a ruby code?
I have developed a project in radrails and it works fine on my computer.
When I uploaded the project to my website I can call the first page that is
html and it displays it properly. It has a link to a rhtml page, and the
calling rhtml page justs display the source code of the page. What does
ROR do and how can I get it to execute a rhtml page with a ruby code?
It seems to me that you are probably using Webrick on your own
computer, and some other server software on your server. You want to
set up the server so that all requests to your site are directed to
one of the CGI scripts in the public/ directory.