Activity
Dennis Hackethal addressed criticism #5847.
#5847·Dennis HackethalOP, 3 days ago·AI-assistedA helper method that calls another action's helper method by name can get another helper's. Rails mixes every helper into every view, so calling
indexfromItemsHelper#createruns whichever helper'sindexRails included last, such asPagesHelper#index:rubymodule ItemsHelperdef index[:ul, @items.map { |i| [:li, i.name] }]enddef createindex # PagesHelper#index, not ItemsHelper#indexendendAction names like
index,showandeditare in many helpers, and the Readme encourages helper methods calling one another.