Oops, looks like my WordPress theme is messing up the code.
@sanjayayogi -- thanks for reposting here to the list
On Dec 3, 2:56 am, sanjayayogi <[EMAIL PROTECTED]> wrote:
> Juan - patch WORKS!!
> Thanks...
>
> Path to the file to patch:
> vendor/plugins/active_scaffold/frontends/default/views/
> _list_calculations.rhtml
>
> The file looks like this with the patch:
>
> <% display_class = ( @records.kind_of?(Array) ? @records.first :
> @records ) -%>
> <tr id="<%= active_scaffold_calculations_id %>" class="active-scaffold-
> calculations">
> <% active_scaffold_config.list.columns.each do |column| -%>
> <td>
> <% if column.calculation? -%>
> <%
> calculation = column_calculation(column)
> override_formatter = "render_#{column.name}_#
> {column.calculate}"
> calculation = self.method(override_formatter).call
> (calculation) if respond_to? override_formatter
> -%>
> <%= calculation.to_s -%>
> <% else -%>
>
> <% end -%>
> </td>
> <% end -%>
> <% unless active_scaffold_config.action_links.empty? -%>
> <td class="actions"> </td>
> <% end -%>
> </tr>
>
> On Dec 2, 1:13 pm, Juan Carlos Mendez-Garcia <[EMAIL PROTECTED]>
> wrote:
>
> > @sanjayayogi
>
> > I think it is a bug. I had a similar problem and fixed it by
> > modifying the file _list_calculations.rhtml to read (fragment)
>
> > <% if column.calculation? -%>
> > <%
> > calculation = column_calculation(column)
>
> > override_formatter = "render_#{column.name}_#
> > {column.calculate}"
> > calculation = self.method(override_formatter).call
> > (calculation) if respond_to? override_formatter
> > -%>
> > <%= calculation.to_s -%>
> > <% else -%>
> >
> > <% end -%>
>
> > Mode detail on my personal
> > pageshttp://8020world.com/jcmendez/2008/12/geeky-stuff/software/activescaf...
>
> > Cheers,
>
> > Juan C.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---