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

On Oct 21, 1:09 pm, blizz <[EMAIL PROTECTED]> wrote:
> A hack fix for the view of "this" parameter of table-plus, (or table
> really cause thats where the fix is)
>
> If you replace line 58 in rapid.dryml with this:
>
>                 <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>
>
> It will work like this:
>
> <Project-view:>  what ever you want to do with it <Project-view:/>
>
> Brett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to