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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -