`current_user.courses.create(author: current_user)` would have been much cleaner.