Re: [chicagoboss] Re: Form Data Validation

2018-02-25 Thread Aurlus Ismael
Chicago boss tutorial does it on model level. I was attempting to do it just on form level. On 24 February 2018 at 11:26, wrote: > On Friday, February 16, 2018 at 12:08:31 AM UTC-7, Aurlus Ismael wrote: >> >> Hi all, >> >> I'm new to Erlang and ChicagoBoss. I've been looking around to see if >>

Re: [chicagoboss] Re: Form Data Validation

2018-02-19 Thread Aurlus Ismael
login('GET', [], Context) -> case proplists:get_value(user_no, boss_session:get_session_data(SessionID)) of undefined -> Form = boss_form:new(login_form, []), io:format("FORM: ~p~n~n", [Form:fields()]), {{ok, [{a, 'b'}, {form, Form}]}, Context};

Re: [chicagoboss] Re: Form Data Validation

2018-02-19 Thread Nick Garanko
Could you share some code, please? -Nick On 19 February 2018 at 07:49:49, Aurlus Ismael (aurlus.ism...@twigafoods.com) wrote: Thanks for that Nick. I already had that as I was getting the error. I changes the position of boss_form in rebar.config and now I have a different issue: 09:44:49.807

Re: [chicagoboss] Re: Form Data Validation

2018-02-18 Thread Aurlus Ismael
Thanks for that Nick. I already had that as I was getting the error. I changes the position of boss_form in rebar.config and now I have a different issue: 09:44:49.807 [error] Unhandled Error: error:function_clause Stacktrace: [{boss_web_controller_handle_request,process_result,[{boss_app_info,

Re: [chicagoboss] Re: Form Data Validation

2018-02-18 Thread Nick Garanko
Ouch, forgot to mention: You have to add following into deps section of rebar.config ``` {boss_form, ".*", {git, “https://github.com/ngaranko/boss_form.git";, "HEAD”}} ``` https://github.com/ngaranko/r2d2/blob/master/rebar.config#L3 (here using git url for dev reasons) And then run: ./rebar get-d