i have a new rails site that i am setting up just like i normally do with all of the other sites. i created a subdomain which is pointed to a subfolder in my public_html. i can view the site both at test.mywebsite.com and mywebsite.com/test/ but when i view it by the subdomain, rails helpers are adding the /test/ to all of my resources, so none of my images or style sheets are found. this hasn''t ever happened to be before, so i''m not sure what to do. is there something else i have to add in my .htaccess 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 -~----------~----~----~----~------~----~------~--~---
On Jan 22, 2007, at 9:13 PM, Joshua Kieschnick wrote:> i have a new rails site that i am setting up just like i normally > do with all of the other sites. i created a subdomain which is > pointed to a subfolder in my public_html. > > i can view the site both at test.mywebsite.com and mywebsite.com/ > test/ but when i view it by the subdomain, rails helpers are adding > the /test/ to all of my resourcesBy default helpers create absolute paths /images/foo.png So the subdomain is the one that should work out of the box. Are you using custom options for them? -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
not that i know of. i''ve set up apps on subdomains several times before too and they''ve all worked which is why i don''t understand how it''s prefixing all my links with /test/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
just for kicks, i just tried to symlink my app to the root folder and it didn''t add the test prefix, only when it''s accessed by the subdomain. --~--~---------~--~----~------------~-------~--~----~ 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 Jan 22, 2007, at 10:13 PM, Josh wrote:> not that i know of. i''ve set up apps on subdomains several times > before > too and they''ve all worked which is why i don''t understand how it''s > prefixing all my links with /test/Have you set RAILS_RELATIVE_URL_ROOT? Can you check your rewrite rules, if any? -- fxn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
i had an admin restart the server, and now the urls are working right. weird. do they get locked in when the app starts even when it''s not in production? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---