How Rails Finds the View to Render
Rails does not render views by guessing filenames. It builds a template lookup query from the controller, action, format, variant, handler, and view paths, then asks Action View to resolve the best matching template.
URL: https://railsrevelry.substack.com/p/how-rails-finds-the-view-to-render
Post a comment