Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Declaring helper :all in application controller overrides common helper methods in multiple helper files

#1264

Method defined in the helper file which is alphabetically last of all helper files precedes over all other methods, even if used in other controllers' views.

Suppose Module ABC and XYZ are two modules having common helper method my_method. If we try to use my_method in ABC controller's views it uses my_method defined in XYZ helper. It should take my_method defined in ABC helper.

I don't know if this is a bug or a limitation. Please clear.

Reported by Amit Solanki · October 24th, 2008 @ 11:35 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH
    • State changed from new to invalid

    This is a limitation of a flat namespace. You have to use different names.

    October 30th, 2008 @ 11:19 AM

  2. af001
    af001
    • Importance changed from to

    私の中で、総合評価のとっても低いアバアバクロホリスタークロ銀座店。アバクロは大好きなんですけどね。一昨日の東京駅付近での打ち合わせの後、散歩がてら久々に行ってきました。そしたらビックリ!相変わらアバクロず、踊っているだけの店員さんとかもいましたが、

    May 5th, 2011 @ 02:57 AM