im getting started with STI but having trouble with link_to
including an type column
resources :tiger , :controller => ‘animals’, type: ‘tigler’
resources :lion , :controller => ‘animals’, type: ‘lion’
link_to ‘show’, animal >>undefined method `animal_path’
what is the correct way without hacking through classes and rewriting url helpers etc?