0
我遵循REST API和'Building web application with Erlang' book的yaws教程。未找到記錄
我開始$ yaws
當出現以下錯誤:
file:path_eval([".","/Users/<uername>"],".erlang"): error on line 3: 3: evaluation failed with reason error:{undefined_record,airport} and stacktrace [{erl_eval,exprs,2,[]}]
.erlang
文件:
application:start(mnesia).
mnesia:create_table(airport,[{attributes, record_info(fields, airport)}, {index, [country]}]).
rest.erl
文件可以發現here。
如何定義記錄?我試圖添加rd(airport, {code, city, country, name}).
沒有成功。