Im new to ruby but trying to create a project, after doing some research i found to use Devise, cancan and role models, however im not having much luck and would really appreciate some assistance or guidance n where i can go to do this!
Basically i am trying to create a site which allows sports coaches/athletes to sign up, the coach can then set a different weekly program, of which the athlete will fill in daily, only on certain selected areas but can still veiw what the coach has written. of which then the coach can then print out the report from that week once the athlete has filled it in
I have installed devise, cancan and rolemodel, and got the basics set up using this http://www.phase2technology.com/blog/authentication-permissions-and-roles-in-rails-with-devise-cancan-and-role-model/ , however im struggling to see how i can sign the athletes up as "athletes" and coaches up as "coaches" even then only allowing coaches to select certain athletes (their athletes) to assign training programs to.
Thankyou your help would be most appreciated!