0

I have set up devise for my app then i've used this to enable guest users: https://github.com/plataformatec/devise/wiki/How-To:-Create-a-guest-user

I tested my signin/out and it still seems to work. I actually wonder if it's really creating guest users. How can I check it's actually really creating guest users when anonymous users connect?

4

1 回答 1

0

只需在终端中打开 rails 控制台rails c,然后查询您的数据库User.where(name: 'guest')。如果它正在工作,您应该有一个来宾用户列表。

于 2013-07-15T21:51:02.837 回答