Or. the helper that is being used should be the helper from the controller that you are rendering the view from.
You are rendering two different scaffolds, but what controller are you using to render both scaffolds? For instance if you have a nested scaffold the overrides need to go in the parent controller On Wed, Apr 22, 2009 at 2:35 AM, Sergio Cambra .:: entreCables S.L. ::. < [email protected]> wrote: > > El Tuesday 21 April 2009 18:45:55 Soren escribió: > > Hi, > > > > I have two different embedded scaffolds on one page. Each is attached > > their own controller - which are completely different. Lets call the > > User and Student > > > > There are however fields - address that are both in User and Student. > > > > If I define a helper method in helpers/student_helper to deal with > > address it is invoked on BOTH the scaffolds. > > > > def address_column(record) > > if record.private > > "private" > > else > > record.address > > end > > > > I'm running rails 2.2.2 and AS-2.2 > > > > Is this a bug or did i miss something ? > > Probably you will have helper :all in your application controller > > > > > > -- > Sergio Cambra .:: entreCables S.L. ::. > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
