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=""></a>

People watching this ticket