Hi, I am looking for a solution in my application, i want to provide a personal "domain" to my users just like del.icio.us do, i don''t want a subdomain, i just want that people can choose to show some information and give other people a link like www.myapplication.com/name_of_user. i want to transform => www.myapplication.com/name_of_user to www.myapplication.com/users/1 what is the correct approach ? thanks, Cristian Vasquez Medellin - Colombia -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
1. Use subdomains and cname records. 2if name unic, in your model write def to_param name end Sent from my iPhone On 06.03.2010, at 10:08, Cristian Vasquez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I am looking for a solution in my application, i want to provide a > personal "domain" to my users just like del.icio.us do, i don''t want a > subdomain, i just want that people can choose to show some information > and give other people a link like www.myapplication.com/name_of_user. > > i want to transform => > > www.myapplication.com/name_of_user > > to > > www.myapplication.com/users/1 > > what is the correct approach ? > > thanks, > > Cristian Vasquez > Medellin - Colombia > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 > . >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Cristian Vasquez wrote:> I am looking for a solution in my application, i want to provide a > personal "domain" to my users just like del.icio.us do, i don''t want a > subdomain, i just want that people can choose to show some information > and give other people a link like www.myapplication.com/name_of_user.Have a look at this article which shows how to have unique user URLs as either subdomains (without changes to web server or cname records) or as directory path names: http://www.gregwillits.ws/articles/using-subdomains-in-rails-apps -- gw -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.