hi,

Attrs = [{username, "MyName"},{email "[email protected]"}],
M = boss_record:new(member, Attrs).

M:username().
M:email().

M1 = M:set(name, "MyName").
M1:name().

M1:save().






2014-07-02 5:28 GMT+08:00 Jason Clark <[email protected]>:

> how do i or can i access a model from the console
> say i make
> src/model/member.erl
> -module(member, [Id, Username, Email, Name, PasswordHash, Key, Status]).
> -define(SECRET_STRING, "Not telling secrets!").
> -compile(export_all).
>
> %% @doc Returns the session identifier.
> session_identifier() ->
>     mochihex:to_hex(erlang:md5(?SECRET_STRING ++ Id)).
>
>
> then in the console run
> member:new().
> ** exception error: undefined function member:new/0
>
> member:session_identifier().
> ** exception error: undefined function member:session_identifier/0
>  any ideas
> im just following the an evening guide but swtched the ward_boss
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/9c60f373-bcf1-4308-b7fc-b7e7d1c36e8e%40googlegroups.com
> <https://groups.google.com/d/msgid/chicagoboss/9c60f373-bcf1-4308-b7fc-b7e7d1c36e8e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CAB-Ofhk6fAvz8Gk%2Bveoho0YiUjHG3hL%2BjCGhWxTVFPqbHDdXaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to