Can somebody explain to me, why I do have to restrict my
list_row_class with a class-check to make it work?

> module WettkasHelper
>   def list_row_class(record)
>     if record.class == Wettka
>       if record.wamms_support
>         'wamms_supported'
>       end
>     end
>   end


If I *don't* restrict it, aka:

> module WettkasHelper
>  def list_row_class(record)
>    if record.wamms_support
>      'wamms_supported'
>    end
>  end

I do get an error message from *all* other classes, when accessing the
index, e.g.:

> NoMethodError in Diszips#index
> Showing 
> vendor/plugins/active_scaffold/frontends/default/views/_list_record.html.erb 
> where line #5 raised:
> undefined method `wamms_support' for #<Diszip:0x320ccc4>

Puzzled (as always)
Michael


--~--~---------~--~----~------------~-------~--~----~
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