I’m working on a function that allows any admin to mimic or impersonate other users. In other words, I want the admin to be able to freely access any user’s personal dashboard. I came across a gem by Engine Yard called User_Impersonate (https://github.com/engineyard/user_impersonate). It looks promising, but is fairly new so I was interested in other alternatives to accomplish this.
I’m also using Devise. As an alternative to the above gem, could I just reconfig the Devise route so that the edit user page is no longer
user/edit but something like
users/:user_id/edit. If you had to implement something similar, how did you handle it? Thanks!