Sorry if this is basic, but I’ve been thrown in the deep end at a job where nobody has ever written anything in RoR, including me, and asked to “fix” something.
I’m looking at a page in my web browser which is domain.com/collect — and I’ve found that in the routes.rb file:
get '/collect' => 'payments#index', :as => :collect
And so I’ve assumed this means the index method in the PaymentsController class. I’ve found that method and its:
def index
end
And that’s it. There’s a parent class — PaymentsController < AppController but the super method is never called, and if it was … well, its not there, either.
So, what’s generating the view here?
The view is at
app/views/payments/index.html.erb, and it’s layout is likely atapp/views/layouts/application.html.erb