Hi,
rails 3 is including all helpers as a default.
Either, turn off that feature
or, define only one method name_column and do a case statement by
record class.
--
Volker
On 17 Jun., 16:00, Nick Rogers <
ncrog...@gmail.com> wrote:
> In active_scaffold vhochstein fork under rails 3.0.5, if you create a form
> or column helper method override for two different scaffold controllers
> having an attribute with the same name, they overwrite one another.
>
> For example, using volker's demo app.
>
> # is NEVER called for players scaffold
> module PlayersHelper
> def name_column(record)
> "a Player: #{
record.name}"
> end
> end
>
> # this is called by teams AND players scaffold
> module TeamsHelper
> def name_column(record)
> "a Team: #{
record.name}"
> end
> end
>
> Players
> *Name* Date of birth Injured Salary Team Created at Updated at
> *a Team*: nick - 0.000 test Tue, 14 Jun 2011 14:57:20 +0000 Tue, 14 Jun 2011