I've resolved the problem... In the show.html.ejs file, instead of
<%= p + ': ' + params[p]; %>
I have to write
<%= p + ': ' + arithmetic_problem_type[p]; %>
and this has the desired effect.
Question
I've followed the tutorial from here (without scaffolding) and completed the app.
My question is: when I click on a created item and the list of parameters id diplayed, why are the title and status undefined. In the list of ITEMS they are correct, but when I click on one item, they appear undefined. Why is this happening?
List of items (left: title, right: status): http://s12.postimage.org/dt262qngd/items_list.png
List of params for an item: http://s23.postimage.org/n3p5yffqj/params.png
Thanks!
La solution 2
I've resolved the problem... In the show.html.ejs file, instead of
<%= p + ': ' + params[p]; %>
I have to write
<%= p + ': ' + arithmetic_problem_type[p]; %>
and this has the desired effect.
Autres conseils
You're unable to connect to socket.io server. Add listen on your http server instance.
var io = socketio.listen(geddy.server);
See this.
Authorization failure can also cause this problem. For authorization on socket.io requests, check this.
Geddy can help adding local, Facebook, and Twitter authentication directly with geedy auth
.
If you haven't used socket.io when creating geddy project, create project with this option
geddy app -rt