The following is defined in app/controllers/support_controller.rb and I do not have a template support/test in the views folder.
class SupportController < ActionController::Base
def test
end
end
As expected, Rails throws the following exception which includes a list of directories where it searched for the template:
ActionView::MissingTemplate at /test
Missing template support/test with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :haml]}. Searched in:
* "/Users/slowmo/Desktop/Apps/courier/app/views"
* "/Users/slowmo/.rvm/gems/ruby-2.5.5/gems/activeadmin-1.0.0.pre1/app/views"
* "/Users/slowmo/.rvm/gems/ruby-2.5.5/gems/kaminari-0.17.0/app/views"
* "/Users/slowmo/.rvm/gems/ruby-2.5.5/gems/devise_cas_authenticatable-1.10.4/app/views"
* "/Users/slowmo/.rvm/gems/ruby-2.5.5/gems/devise-4.6.2/app/views"
I would like to know if there is a method which returns the list of directories shown above for that action? I know prepend_view_path allows me to add to that list but I can't find any documentation on how I can read from that path list?