Hi,
you should call host/controller/action and not just host/action

also, for better understanding you  need to show your routes file


On Sun, Sep 7, 2014 at 3:21 AM, <[email protected]> wrote:

> Command:
> curl -H POST -d @file localhost:8001/action
>
> controller is:
> index('POST', []) ->
>   ok.
>
> I ger error:
> 04:17:14.974 [error] gen_server <0.282.0> terminated with reason: bad
> argument in call to erlang:list_to_atom(undefined) in
> boss_router_controller:route/2 line 174
>
> This line is
> ControllerModule = list_to_atom(boss_files:web_controller(App, C,
> State#state.controllers)),
>
> and this: boss_files:web_controller(App, C, State#state.controllers)
> actually return undefined
>
> Any idea how to fix it?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/8c20f826-27c5-487d-bbbe-9bd3c3d70fbc%40googlegroups.com
> <https://groups.google.com/d/msgid/chicagoboss/8c20f826-27c5-487d-bbbe-9bd3c3d70fbc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAF9GSxZLuN6HALO%3DgvFkvuWgprPAeCayWoKrAOePxAancKnG1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to