I have a website that works with remote procedure only. There’s a
welcome action that actually renders the website and whenever you click
somewhere it only works with “render :update…”. Now I would like to
automatically restore the session. For example you enter the site and
it’s rendered by the action ‘welcome’, I click on ‘show users’ and the
users are being displayed using “render :update”. At the same time the
currently viewed page is being saved in the session.
Now when a user returns I want to show ‘show users’ directly when
entering the website and not the ‘welcome’ page. Unfortunately I cannot
use “render :update…” in the beginning already cause there’s nothing
The problem is that all actions but ‘welcome’ can only be accessed using
xhr so I can’t redirect_to or something like that.
I hope I could somehow make clear what my problem is and would be really
appreciate any help