This project is archived and is in readonly mode.

#1264 ✓invalid
Amit Solanki

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

Reported by Amit Solanki | October 24th, 2008 @ 11:35 AM | in 2.x

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.

Comments and changes to this ticket

  • DHH

    DHH October 30th, 2008 @ 11:19 AM

    • State changed from “new” to “invalid”

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

  • af001

    af001 May 5th, 2011 @ 02:57 AM

    • Importance changed from “” to “”

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages