#680 open
Bryan Larsen

type_and_field sometimes fails

Reported by Bryan Larsen | March 31st, 2010 @ 05:50 PM | in Hobo 1.4

I've got this:

<organizations-view:>
  <% this << Organization.new if this.length==0 %>
  <name-one:0 complete-target="&Organization"/>
</organizations-view:>

It's not pretty, but it shouldn't fail. To make it work, I need:

--- a/hobo/taglibs/rapid_forms.dryml
+++ b/hobo/taglibs/rapid_forms.dryml
@@ -735,7 +735,7 @@ If you wish to set `min-chars` to 0, you will require this [patch to controls.js
   value = name(:no_wrapper => true, :if_present => true)
   -%>
   <input type="text" name="#{param_name_for_this}" 
-         class="autocompleter #{type_and_field.dasherize} #{css_data :complete_on, typed_id(complete_target), completer} #{css_data :min_chars, min_chars} #{'nil-value' if value==''}"
+         class="autocompleter #{type_and_field._?.dasherize} #{css_data :complete_on, typed_id(complete_target), completer} #{css_data :min_chars, min_chars} #{'nil-value' if value==''}"
          value="#{value=='' ? nil_value : value}"
          merge-attrs/>
   <div class="completions-popup" style="display:none"></div>

That isn't a proper fix, though...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Tags

Referenced by

Pages