So Blizz is awesome, thanks a lot!
My first thought about how to apply the fix was WHY NOT DO IT THE
DRYML WAY AND EXTEND THE TABLE TAG?!? So I looked at the table tag def
in hobo/taglibs/rapid.dryml and figured if I could find the smallest
enclosing param tag containing the bad code I could just replace it.
So it looked like the param I needed to replace was <tr:>, copying and
pasting the contents of the original <tr> into my extension version
with only the commented out line changed with Blizz's fix. Running my
app with my extended <table> gives me an error of
undefined method `fields' for #<ActionView::Base:0xb64357e0>
So: am I smoking crack, or am I on the right track but just missed
something?
<extend tag="table">
<old-table merge>
<tr: replace>
<if test="&fields">
<with-fields merge-attrs="&all_attributes &
attrs_for(:with_fields)" force-all>
<!-- <td param="#{this_field.to_s.sub('?', '').gsub('.',
'-')}-view"><call-tag tag="&field_tag"/></td>-->
<td param="#{(this_field.to_i.to_s == this_field.to_s) ?
this.class.to_s : this_field.sub('?', '').gsub('.', '-')}-view">
<call-tag tag="&field_tag"/>
</td>
</with-fields>
<td class="controls" param="controls"
if="&all_parameters[:controls]">
<a param="edit-link" action="edit">Edit</a>
<delete-button param/>
</td>
</if>
</tr:>
</old-table>
</extend>
Thanks,
Andy