如何为我的用户提供他们自己的个人资料

时间:2022-04-05 10:10:34

I have a car review website where Users are able to review cars, view news articles and write a personal blog about certain cars e.t.c. I have made a login system using devise, where users can log in and log out. However, I'm confused in how to get sessions to work. i.e. a user can write a review from their account and others would be able to see it, but would not be allowed to edit it or change it. Sorry for my bad wording. I would like my users to have their own personal account, like a facebook profile if you will. Are their any tutorials or gems that could help.

我有一个汽车评论网站,用户可以查看汽车,查看新闻文章,并撰写关于某些汽车e.t.c的个人博客。我使用devise创建了一个登录系统,用户可以登录和注销。但是,我对如何让会话工作感到困惑。即,用户可以从他们的帐户写入评论,而其他人可以看到它,但不允许编辑或更改它。抱歉我的措辞不好。我希望我的用户拥有自己的个人帐户,如果你愿意的话就像facebook个人资料。他们的任何教程或宝石都可以提供帮助。

1 个解决方案

#1


0  

There is an excellent resource by Michael Hartl, http://ruby.railstutorial.org/book/ruby-on-rails-tutorial

Michael Hartl提供了一个很好的资源,http://ruby.railstutorial.org/book/ruby-on-rails-tutorial

The first 7-8 chapters covers user sign in and session management.

前7-8章涉及用户登录和会话管理。

#1


0  

There is an excellent resource by Michael Hartl, http://ruby.railstutorial.org/book/ruby-on-rails-tutorial

Michael Hartl提供了一个很好的资源,http://ruby.railstutorial.org/book/ruby-on-rails-tutorial

The first 7-8 chapters covers user sign in and session management.

前7-8章涉及用户登录和会话管理。