Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. @certificate, @exp_date = certificate_with_date(@int, @coach)
  2.  
  3. undefined method `certificate_with_date' for #<#<Class:0x0000564473b34af8>:0x0000564473b31ec0>
  4.  
  5. helper_method :certificate_with_date
  6.  
  7. def certificate_with_date(num, coach)
  8. if num == 1
  9. return 'DBS', coach.DBS
  10. elsif num == 2
  11. return 'Safety', coach.safe_qual
  12. elsif num == 3
  13. return 'Coach', coach.coach_qual
  14. elsif num = 4
  15. return 'First Aid', coach.first_aid
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement