make use of window.location.hash to set proper tab after the page is
loaded. It more or less works, but the main problem is that I got some
forms and I don't know how to set their url correctly, so that after
the form is sent, proper tab is opened again.
I.e. page under "domain.com/foo/1#tab_1" has a form that points to
"domain.com/foo/1/update". Is it possible to somehow send
window.location.hash along the whole request, so that after handling
the request I can redirect user back to "domain.com/foo/1#tab_1"?
I could use remote forms, so that user always stays on the same page,
but I'd prefer not to use them, unless it can't be done in any other