Forum: Ruby on Rails How to get access to /admin panel without Devise?

Posted by Nikolay (Guest)
on 2012-12-16 15:43
(Received via mailing list)
I have question:
How to get access to /admin panel without Devise?
And how to create admin user?
Posted by Colin Law (Guest)
on 2012-12-16 16:01
(Received via mailing list)
On 16 December 2012 14:42, Nikolay <itsnikolay@gmail.com> wrote:
> I have question:
> How to get access to /admin panel without Devise?
> And how to create admin user?

I am afraid your question does not make any sense.
Does your application contain an admin panel?
What do you mean by an admin user?  Do you know how to create a normal 
user?
Perhaps you mean that you do not know how to have users that have
specific roles.  If so then look at the cancan gem.

If you are new to Rails then work through some good tutorials such as
railstutorial.org, which is free to use online.  Then you will
understand the basics of rails.

Colin
Posted by tamouse mailing lists (Guest)
on 2012-12-20 03:41
(Received via mailing list)
On Sun, Dec 16, 2012 at 8:42 AM, Nikolay <itsnikolay@gmail.com> wrote:
> I have question:
> How to get access to /admin panel without Devise?
> And how to create admin user?

Are you using the Active Admin gem? Active Admin bundles in Devise for
managing adminstrative users (which could be completely separate from
whatever your application does with user registration and
authorization).

Do you need to know how to get into it for the first time, so you can
set up users?

Do you have a current installation using Active Admin with Devise that
you cannot get into because you don't have credentials?

If you do have credentials to the application data base, you could
hack the users table, but I don't really recommend doing that.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.