{"action":"closed","issue":{"url":"https://api.github.com/repos/awetzel/ewebmachine/issues/9","labels_url":"https://api.github.com/repos/awetzel/ewebmachine/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/awetzel/ewebmachine/issues/9/comments","events_url":"https://api.github.com/repos/awetzel/ewebmachine/issues/9/events","html_url":"https://github.com/awetzel/ewebmachine/issues/9","id":42113022,"number":9,"title":"Need more elixir-specific examples","user":{"login":"nickretallack","id":13291,"avatar_url":"https://avatars.githubusercontent.com/u/13291?v=3","gravatar_id":"","url":"https://api.github.com/users/nickretallack","html_url":"https://github.com/nickretallack","followers_url":"https://api.github.com/users/nickretallack/followers","following_url":"https://api.github.com/users/nickretallack/following{/other_user}","gists_url":"https://api.github.com/users/nickretallack/gists{/gist_id}","starred_url":"https://api.github.com/users/nickretallack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickretallack/subscriptions","organizations_url":"https://api.github.com/users/nickretallack/orgs","repos_url":"https://api.github.com/users/nickretallack/repos","events_url":"https://api.github.com/users/nickretallack/events{/privacy}","received_events_url":"https://api.github.com/users/nickretallack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-06T09:38:32Z","updated_at":"2015-01-25T21:23:44Z","closed_at":"2015-01-25T21:23:44Z","body":"I wrote a simple resource:\r\n\r\n```\r\n\tresource ['test'] do\r\n\t\tallowed_methods do\r\n\t\t\t['GET']\r\n\t\tend\r\n\r\n\t\tto_html do\r\n\t\t\t\"Hello\"\r\n\t\tend\r\n\tend\r\n```\r\n\r\nWhen I try to GET it, this happens:\r\n\r\n```\r\n[{erlang,atom_to_list,[\"GET\"],[]},\r\n {webmachine_decision_core,'-decision/1-lc$^0/1-0-',1,\r\n                           [{file,\"src/webmachine_decision_core.erl\"},\r\n                            {line,178}]},\r\n {webmachine_decision_core,decision,1,\r\n                           [{file,\"src/webmachine_decision_core.erl\"},\r\n                            {line,178}]},\r\n {webmachine_decision_core,handle_request,2,\r\n                           [{file,\"src/webmachine_decision_core.erl\"},\r\n                            {line,33}]},\r\n {webmachine_mochiweb,loop,2,[{file,\"src/webmachine_mochiweb.erl\"},{line,74}]},\r\n {mochiweb_http,parse_headers,5,[{file,\"src/mochiweb_http.erl\"},{line,180}]},\r\n {proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]\r\n```\r\n\r\nOh, I get it.  It needs to be an atom, not a list-string like it is in the erlang version.\r\n\r\nIt'd be neat if you could provide a simple example of how to do CRUD in ewebmachine.  Guessing the differences from the erlang version is kind of hard.  Especially when the error messages are like this.\r\n\r\nWould it be possible to add more informative errors?  Or would it be on erlang webmachine to do that?"}}