Hi, Rails and/or Firefox are driving me nuts.
I have a products_controllers with 2 actions: index and show. - On the index action a session is set to create an order if user has no order yet. - On that index page, user can click on a link that will bring him to the show action of a product where payment buttons are displayed. - The show action is protected by a before_filter login_required, and a before filter for checking if a session[:order_id] is present, if not he goes to index action. - After logging in, user is redirected to show action, payment buttons appear, and his session[:order_id] is set to nil. All is fine up to here. So now while on show action, if user hits the reload button, as his session is empty, he will go to index page. That works. But now, hang on tight, back on index page, if user click the refresh button, for some mysterious reason, he goes to the show page he previously visited!!! How is that possible??? And even more strange, while on the index page, if user hits enter key in the address bar, then the user doesn't get redirected to show page, but stays on index page!? Is that a buggy behavior from Firefox or what??? -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

