wdtnh
XxxxxWeb.Router.Helpers.volunteer_path/3 is undefined or private
Using phoenix 1.6 and I’ve scaffolded out an app called ghcc. I’m getting a routing error as follows:
GhccWeb.Web.Router.Helpers.volunteer_path/3 is undefined or private
I have a context module Volunteers, ecto schema Volunteer and table volunteers. used phx.gen.html to scaffold things out. But anywhere I am navigating that refers to Routes.volunteer_path(…) I get warning messages that Routes.volunteer_path is either undefined or private function. I have NO idea why this is happening. Warning flags are happening for templates, view and controller. Thanks for any help
Most Liked
msimonborg
is your app raising exceptions and/or compiler warnings in the terminal, or are you getting warnings in your editor/IDE?
I use VSCode with ElixirLS, and in my experience you may get warnings in the editor sometimes when declaring new routes. quitting VSCode, rm -rf .elixir_ls/ , and reopening the editor usually fixes it
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









