Questions tagged [chicagoboss]

Chicago Boss is a server framework inspired by Rails and written in Erlang.

Chicago Boss takes advantage of functional programming and under-the-hood compiler magic to provide clean, understandable controller logic, Django-style templates, and an ORM based on Erlang's parameterized modules. The best part is that the network I/O is 100% asynchronous so you can seamlessly integrate Comet endpoints into your app, and you never have to worry about a slow database query dragging down unrelated requests.

84 questions
0
votes
1 answer

ChicagoBoss get last entity

I'm a new one in ChicagoBoss and Erlang. And I have dumb question: How can I get last entity from db? Something like User.last in Rails.
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
1 answer

Restriction when using boss_db?

I am trying to use boss_db for accessing pgsql. The table should have the column name, id, it should be primary key The Id type is only be uuid or serial. Is it right? I want that id is varchar(20), the value of id is decided by the program, not…
Chen Yu
  • 3,955
  • 1
  • 24
  • 51
0
votes
1 answer

ChicagoBoss and mnesia creating table error

I have ChicagoBoss application and i want to use mnesia to store data of register user. I setup {db_adapter, mnesia} in boss.config. Now i try to create mnesia database and…
0xAX
  • 20,957
  • 26
  • 117
  • 206
0
votes
1 answer

ChicagoBoss rejects user as a model name

So following this tutorial: https://github.com/evanmiller/ChicagoBoss/wiki/An-Evening-With-Chicago-Boss Everything works like a charm except that I can not use "user" as a modelname. A minimum usecase: -module(customer, [Id, Name, PasswordHash]). …
Abraham P
  • 15,029
  • 13
  • 58
  • 126
0
votes
1 answer

How to integrate Chicago Boss and Webmachine ?

I just want to develop a RESTful api server with webmachine, but i want to use chicago boss's tools in the same time , Does anyone can help me ?
Michael
  • 367
  • 5
  • 12
0
votes
3 answers

Setup ChicagoBoss with all deps to ERL_LIBS

I try to set up ChicagoBoss with all it's dependencies to ERL_LIBS environment variable. I got ChicagoBoss, compiled it with ./rebar get-deps && ./rebar compile, now i have ChicagoBoss in /home/user/ChicagoBoss directory and it's dependencies in…
0xAX
  • 20,957
  • 26
  • 117
  • 206
0
votes
1 answer

chicago boss Reference sequence/collection elements from a view

I am a new comer to CB and I'm working on a project in which I need to pass a list of the previous 12 months from today's date to the view, in the fashion of Year,Month, so that the view writes something as follows for each.
     …
lfurrea
  • 176
  • 1
  • 10
0
votes
1 answer

How to pass some value to another action in chicagoboss?

I wrote some like that: login('POST', []) -> .... case Client:check_password(Req:post_param("password")) of true -> {redirect, [{controller, "chat"}, {action, "live"}], [{username, Name}, {gender,…
user1684696
  • 21
  • 4
  • 6
0
votes
1 answer

Trouble linking ChicagoBoss controllers to views

I'm making a website in Erlang, but I'm having troubles. I installed Chicagoboss and the server starts, but I have a problem. They say to go to this page localhost:8001/pages/index when i go to this page I get an error: No routes matched the…
user1103589
1 2 3 4 5
6