Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Standup 1/20/2011: Admin flag with Devise?

Ask for Help

“Any suggestions for analytics on iPad events?”

Questions like, how many times has this video been played or how many times has this object been tapped.

One suggestion was to hit a web server somewhere with some details and use splunk to analyze it.

“Any experience using a flag to indicate an administrator in Devise?”

Some indicated that this is difficult to do with Devise, and recommended against it. Someone else pointed out that the Device site actually includes this as an example.

Comments
  1. Trevor Turk says:

    It’s so easy to create multiple models for users/admins/etc that I always just go that route. This way you get all of the helpers etc for free – and you really don’t lose anything.

    This is how the devise example app works as well:

    https://github.com/plataformatec/devise_example/tree/master/app/models

  2. Rajan Agaskar says:

    I’m using CanAble (for authorization) alongside Devise (authentication) on a side project, and it seems to be OK for the small number of roles I have. The downside is it doesn’t seem to handle unauthenticated users out of the box — I’ve created a monkey patch that adds this ability here:

    https://github.com/jnunemaker/canable/issues#issue/2

  3. Excellent post however , I was wanting to know
    if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little
    bit further. Appreciate it!

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *