Hello,

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
to replace.

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 :)
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to