ruby on rails - i dont understand how the devise admin model work -


i building rails app, , want users , admin (me), dont understand how devise admin model work, because if have have admin model, cant go link (/admins/sign_up) , sign_up admin on site?

i have tried around on internet cant seem find answer.

if can explain me how can on problem, love :d

thank - peace

if run rake routes | grep 'admin' see there no route admin/sign_up. admin user should created on rails console or within admin.

when install devise (with migrations , all) creates default admin user email: "admin@example.com" , password: "password".

you should login create real admin user , them delete default one.

and here excellent devise tutorial: http://www.gotealeaf.com/blog/how-to-use-devise-in-rails-for-authentication :)


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -