Do I have to explicitly declare all routes then... did some code reading 
and in boss_files:web_controller() it folds over a list of compiler 
adapters (WTF!?) and seems to be hunting for a controller, returning 
"undefined" if unsatisfied... I will experiment with declaring all my 
routes maybe?



On Saturday, 3 January 2015 23:49:47 UTC, Emacs the Viking wrote:
>
> Hi,
>
> I have read a lot around this issue, the only solution seemed to be "clean 
> and compile" which I did to no avail.
>
> The root cause is:
>
> gen_server <0.263.0> terminated with reason: bad argument in call to 
> erlang:list_to_atom(undefined) in boss_router_controller:handle/2 line 146
> Why should there be a problem just because I am in "deploy" mode... I am 
> not that familiar with the code yet, I've used Erlang for about 7 years... 
> if i get time I will have a close look myself but I don't need the 
> distraction right now!
>
> The code I have running was created with version 0.8.11, a cursory glance 
> shows that:
>
> handle(StatusCode, State) ->
>     _Result = case ets:lookup(State#state.handlers_table_id, StatusCode) of
>         [] ->
>             not_found;
>         [#boss_handler{ application = App, controller = C, action = A, 
> params = P }] ->
> *            ControllerModule = 
> list_to_atom(boss_files:web_controller(App, C, State#state.controllers)),*
>             {Tokens, []} = boss_controller_lib:convert_params_to_tokens(P, 
> ControllerModule, list_to_atom(A)),
>             {ok, {App, C, A, Tokens}}
>     end.
>
> I guess the return value from boss_files:web_controller is "undefined" 
> hence the blow out. It is using the same routes file as in development mode 
> so I am confused right now!
>
> Ultimately it needs addressing so I won't be able to put it off forever!
>
> Thanks.
> Sean.
>
>

-- 
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/410bbdbb-838d-4ef6-82f1-bc30a98c501e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to