You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are number of different ways to store the session, and rails provides a single interface to these. The default will store the session in a cookie, others will use a database or memcached etc.
In your code example, the id of @thing is stored in the curent session, under a key known to the plugin. The idea is then that people can anonymously create things, which are stashed in the session. When the user finally signs up, you can call:
I have this in my controller create action:
@thing.save!
@thing.stash(session)
What does this actually do? What is "session"? Does it create a cookie?
Sorry I'm a beginner and there is an awful lack of guides to do lazy registration. Your gem seems to be my only hope.
The text was updated successfully, but these errors were encountered: