Fix tasks creation, clean code
Add 'courses#index' action