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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/15/06, SIX-S <sixs-grSx+0tW+Es@public.gmane.org> wrote:> 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 > JimSincerely, Tom Lieber http://AllTom.com/ http://GadgetLife.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---