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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -