On Domingo, 6 de Marzo de 2011 22:26:29 Lindsay Morris escribió:
> I had an app working under Rails 2.3.10 with activescaffold (NOT Volker's
> fork though.)
> I wanted the config_list column picker to work, so I followed the
> directions to upgrade to Rails 3, then followed volker's directiosn to
> reinstall active_scaffold.
> So, mostly working now, and finally I see the column picker interface.
>  Great!
> 
> But it seems wherever I used a virtual column before, like the "Action"
> column below (Model: :client_schedule has_many :events,  and :action is a
> column in client_schedule)
> 
> (app/controllers/events_controller.rb)
> class EventsController < ApplicationController
>  active_scaffold :events do |config|
>     config.columns = [ ..., :action, ... ]
>      config.columns[:action].includes = [:client_schedule]
>  <snip>
> 
> (app/helpers/volumes_helper.rb)
> module EventsHelper
>  def event_action_column(record)
>    record.client_schedule.action
>  end
> end
> 
> Now I get "undefined method `action' for #<Event:0x5fab4f0>"
> 
> It seems like my app/helpers/xxx files are being ignored.
> Does Rails 3 handle helpers differently?
> Does Volker's fork handle helpers differently?

Volker's fork only handle old names for helpers, without model_ prefix. So you 
should name your helper action_column


-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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.

Reply via email to