Hello all.
I have this code in my show.dryml and when I call the page I read the next 
error in log file.

<show-page>
  <field-list: replace>
    <% if units == "metric" %>
      <field-list fields="field1,field2,field3,field4,attachment"/>
    <% else %>
      <field-list fields="field8,field9field7,field4,attachment"/>
    <% end %>
    <field4-view:><editor/></field4-view>
  </field-list:>
  <collection: replace>
    <embed src="/#{this.attachment}" width="100%" height="300" 
controller="true" autostart="false"></embed>
    <a href="/#{this.attachment}">Click here to see this video on a 
player</a><br/>
  </collection:>
</show-page>

The error is:
ActionView::Template::Error (undefined method `field4_view' for 
#<#<Class:0x7fd7e2d5fe50>:0x7fd7e2d573e0>):

This error is only when i use <% %> for the if but i dont know how to do it 
in a different way...

Maybe is something silly...
Can you help me please?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to