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
- 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
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???