I want the feature as same as google preference. it does not require visitors to register, just select a preference, for instance, a city, next time, when the same user who uses the same computer visits my website, he may be redirected the each city page automatically. how can I do it? thanks in advance. -- 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 -~----------~----~----~----~------~----~------~--~---
I don´t know how but I think a cookie can do that works... 2007/6/13, green <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> > > I want the feature as same as google preference. it does not require > visitors to register, just select a preference, for instance, a city, > next time, when the same user who uses the same computer visits my > website, he may be redirected the each city page automatically. how can > I do it? thanks in advance. > > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have the same feature requirement. After checking google, I believe cookie may do the task. But my question is, although I may use set cookie and get cookie to do something. when a user closes his browser, all the setting will be cleaned. so, when the user re-visit the site, he has to re-set cookie again. I have no idea on how to write cookie to disk and get it back when I need it. I am expecting anyone who has experiences on my problem may help me out. thanks. Fernando Faganello Madeira wrote:> I don´t know how but I think a cookie can do that works... > > > > > 2007/6/13, green <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:-- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---