I have a model for checklist. I want to display it (for now) as list of
disabled check boxes. So I wrote view tag for it

     <def tag="view" for="CheckList">
       <ul>
         <repeat:options>
           <li>
             <input name="options[]" type="checkbox"
                checked="&this[:checked]" value="&this[:id]" disabled/>
             <%= this[:content] %>
           </li>
         </repeat>
       </ul>
     </def>

And it worked fine. However it's very similar to input, so to avoid
duplication I defined input (not later wanting to add disabled attribute):

     <def tag="input" for="CheckList">
       <ul>
         <repeat:options>
           <li>
             <input name="options[]" type="checkbox"
               checked="&this[:checked]" value="&this[:id]" disabled/>
             <%= this[:content] %>
           </li>
         </repeat>
       </ul>
     </def>

And changed definition of view:

     <def tag="view" for="CheckList">
       <input/>
     </def>

The problem is now I get error:

undefined method `input__base' for #<ActionView::Base:0x7f57413e9ac8>

Could you help me to solve it?

Joachim

-- 
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