devise - Rails: warning: already initialized constant User::HABTM_Roles rolify -


this issue i' m facing when trying create seeds.rb inorder define roles rolify gem in rails

on line 2, change rolify rolify: role_cname => 'usertype' to

rolify :role_cname => 'usertype'

you have 2 rolify on user.rb, 1 sufficient.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -