Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phoenix 1.3.0-rc function MyApp.Router.Helpers.admin_path/3 is undefined #321

Closed
bitflorist opened this issue Mar 15, 2017 · 9 comments
Closed

Comments

@bitflorist
Copy link
Contributor

I tried to fix it for a PR, but don't know, where I would have to look further, it looks like, there must be changed some namespacing issues with ex_admin, to work with latetst phoenix version 1.3.x

I get:

UndefinedFunctionError at GET /admin
function MyApp.Router.Helpers.admin_path/3 is undefined (module MyApp.Router.Helpers is not available)

I would love to contribute, but I may need some assistance, where to look into.

@bitflorist
Copy link
Contributor Author

found it:
namespacing has to be considered from new phoenix Filestructure.

@endpoint Module.concat([@module, "Web", "Endpoint"])
@router Module.concat([@module, "Web", "Router", "Helpers"])

cheers - raf

@MartinElvar
Copy link

Or you can just specify the module, with web.

config :ex_admin,
  repo: Compare.Repo,
  module: Compare.Web

@bitflorist
Copy link
Contributor Author

Yes! Cool, that solves it the right way and is much simpler 👍 . Thanks!

@niccolox
Copy link

@radosch where you creating a new Phoenix 1.3 project or upgrading an existing one?

I am new to ExAdmin and creating a new project and having a hell of a time and would like to get a clue before I start posting

@niccolox
Copy link

I got passed basic setup issues with mix deps.clean --all
mix deps.get
mix deps.compile
mix phoenix.server

will post my 1.3 phx demo soon

@bitflorist
Copy link
Contributor Author

@niccolox you may want to post to stackoverflow, thats a better ressource.

I personally have updated the 1.2.x Installation.

@niccolox
Copy link

niccolox commented Mar 28, 2017 via email

@fire
Copy link

fire commented Aug 9, 2017

config :ex_admin,
  repo: Example.Repo,
  module: ExampleWeb

For phoenix 1.3. This works after you do a

mix deps.clean --all
mix deps.get
mix deps.compile
mix phoenix.server

Something seemed to be cached..

@peterwillcn
Copy link

peterwillcn commented Nov 22, 2017

  config :ex_admin,
  repo: Example.Repo,
  module: Example.Web

phx-1.3.0-rc work, but phx-1.3.0 release not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants