trenpixster / addict

User management lib for Phoenix Framework
MIT License
645 stars 99 forks source link

The package is not working with a fresh install #109

Closed ghost closed 7 years ago

ghost commented 7 years ago

I did not digged into it, but what I actually have, is an Error on a fresh installation with config & boilerplate generation, where the /register route is responding with this Error:

UndefinedFunctionError at GET /register
function TestAddict.Addict.AddictController.init/1 is undefined (module TestAddict.Addict.AddictController is not available)

I could't find where it is mistaken, why the controller is misspelled (I guess TestAddict.Addict.AddictController should be Addict.AddictController instead..)

Note: I could't install it just straight forward, because it seams like the package/or its deps are using some old versions of the current phoenix stack, so I had to unlock mix, before the installation could complete.

ghost commented 7 years ago

I found my issue.. I had to create a new scope without the Module as the second param

instead of

scope "/", TestAddict do 
  addict :routes
end

define a new scope

scope "/" do 
  addict :routes
end