You can train them in the field but once they hit rank 10 or 20 (im not sure which) you need to feed them an item that can only be done from a stable to allow them to gain more ranks.