Hi all, I want to build a url like this: name.site.com . Can RoR read out the name in the url? If not I supose it''s uo to the webserver. Can webrick or Mongrel use this and pass this to RoR. I need the name in the url since it will define what will be shown on the page. Thanks Stijn --~--~---------~--~----~------------~-------~--~----~ 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 dont know exactly how it would be done, but i am sure that it can be done. Take the USERNAME.highrisehq.com thing 37signals got going. On Jun 18, 12:08 pm, Tarscher <tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I want to build a url like this: name.site.com . Can RoR read out the > name in the url? If not I supose it''s uo to the webserver. Can webrick > or Mongrel use this and pass this to RoR. I need the name in the url > since it will define what will be shown on the page. > > Thanks > Stijn--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
37signals use this in all their products but i want to know how they do it. Someone has an idea? Thanks, Stijn On Jun 18, 1:37 pm, Glimjaur <glimj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I dont know exactly how it would be done, but i am sure that it can be > done. Take the USERNAME.highrisehq.com thing 37signals got going. > > On Jun 18, 12:08 pm, Tarscher <tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all, > > > I want to build a url like this: name.site.com . Can RoR read out the > > name in the url? If not I supose it''s uo to the webserver. Can webrick > > or Mongrel use this and pass this to RoR. I need the name in the url > > since it will define what will be shown on the page. > > > Thanks > > Stijn--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
_why''s done it again. http://redhanded.hobix.com/bits/dynamicVhostsOneLinerForRails.html -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks alot! On Jun 18, 2:31 pm, Xin Zheng <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> _why''s done it again. > > http://redhanded.hobix.com/bits/dynamicVhostsOneLinerForRails.html > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Xin Zheng wrote:> _why''s done it again. > > http://redhanded.hobix.com/bits/dynamicVhostsOneLinerForRails.htmlHow you integrate it with url_for? So :controller => ''account'', :action => ''home_page'', :id => user.login goes in, and a virtual host URL comes out? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---