Ruby on Rails Monday, January 30, 2017

Yes, lol.  That easy.  I'll try it.

On Monday, January 30, 2017 at 4:48:21 PM UTC-5, Joe Guerra wrote:
I know there is a current_user method for devise, but how do you check if the user is admin?  (I've got a user flagged as admin).

I have a admin menu that I'd like to enable / disable when admin is logged in.

Thanks,
Joe  


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/863a92ed-a4b7-4644-89e3-e8ef077d37b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment