Hi,

I am creating a daily deals website and have a Users table in my
database. I want to be able to differentiate admins from regular
users(customers). What is the recommended way to do this? Just add a
role column to the table which says "admin" or "customer"? Is this
secure? Or maybe create another table called Role (user_id, role)?


Thanks
Samir

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 17, '11 at 11:24p
activeDec 17, '11 at 11:32p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Samir: 1 post Walter Lee Davis: 1 post

People

Translate

site design / logo © 2021 Grokbase