what first web page html call rhtml?

Hi,

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?

Thanks for any help

Jim

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.

Thanks for any help Jim

Sincerely,

Tom Lieber http://AllTom.com/ http://GadgetLife.org/

could you show us the code of your html with the link calling the second page?

you should not point directly to .rhtml files, because then they don't get rendered.

you have to link to a controller action, which then renders the view file.