How to use in views a controller helper method from another controller?

How to use in views a controller helper method from another controller?

I have two controllers having a helper method that has same name but returns different things:

I have two controllers having a helper method that has same name but returns different things:

class My1Controller < ApplicationController
  helper_method :my_helper

def show ... end

private

def my_helper "Something from My1 controller" end end

class My2Controller < ApplicationController helper_method :my_helper

def show ... end

private

def my_helper "Something from My2 controller" end end

In the app/views/my1/show.html.erb view related to My1Controller I would like to use the returned value of my_helper from My2Controller.

How can I make that?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Ruby on Rails vs PHP

Understanding the pros and cons of Ruby on Rails versus PHP is important when deciding how to create your business-critical applications.