[英]How do I setup a shared session between two users on my Ruby on Rails powered site?
The website that I'm building includes a section where two users can interact. 我正在建立的网站上有一个部分,两个用户可以进行交互。 I think I know how to do most of it, except the actual session sharing part.
除了实际的会话共享部分,我想我知道该怎么做。 I'm using Ruby on Rails & Javascript (jquery), and I've got user login and session management all working okay.
我正在使用Ruby on Rails和Javascript(jquery),并且用户登录和会话管理都可以正常工作。 Would the best way to create a shared session be to have a SharedSession model, with accompanying database table, with participant1ID, participant2ID etc?
创建共享会话的最佳方法是使用SharedSession模型,随附的数据库表,partner1ID,participant2ID等吗? Is there a better way?
有没有更好的办法? Thanks so much for reading!
非常感谢您的阅读!
为共享会话创建模型就足够了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.