My initial thought is that erlang doesn't usually like if the filename and the module name aren't the same.
Try changing to -module(appname_application_controller, [Req]). -Jesse On Sun, Jun 29, 2014 at 12:11 PM, Pranaya Behera <[email protected]> wrote: > Hello , > I am new to erlang and chicagoboss as well. I have installed both > and made one project. I have installed Chicagoboss from the git master not > on a stable branch though . In controllers dir i created > appname_application.controller.erl and I tried the hello world example from > the documentation section. When I go to the localhost:8001/application/hello > it gives me the view file for hello isn't defined. Isn't it supposed to show > me hello world directly if I am directly sending data to the browser. > > appname_application_controller.erl > -module(ntw_application, [Req]). > -compile(export_all). > > hello('GET', []) -> > {json, [{application, "Hello, world!"}]}. > > > Browser error: > The requested template > ("src/view/application/hello.{dtl,html,txt,js,jade,eex}") was not found. If > you controller did not run, check that it was exported Additionally, no > handler was found for processing 404 errors. You probably want to modify > /home/shafox/Sandbox/appname/priv/ntw.routes to prevent errors like this > one. > > -- > 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/3b5e15bb-3050-4ae2-bdb2-3437b9a4dfff%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Jesse Gumm Owner, Sigma Star Systems 414.940.4866 || sigma-star.com || @jessegumm -- 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/CAPTXyXfjn5dzKSti%3DYTEHKUMCcA0YpRVFbz8L%3D8Ax3zTwbXOhQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
