Out of curiosity, is "Lote" spelled with 7-bit ascii in your model?  Or is it 
8-bit or Unicode?

Henry

On July 14, 2010 11:56:02 am Hugo wrote:
> Hi,
> 
> I've tried to change a form by adding the following code do
> Application.dryml:
> 
> <extend tag="form" for="Lote">
>     <old-form merge>
>         <field-list fields="nome, artigo" param/>
>     </old-form>
> </extend>
> 
> but I always get the error "undefined method `form__for_lote' for
> class `#<Class:0x106cbd7f0>'"
> 
> Note: The same happens if I try to change other forms from other
> models. For instance if I try <extend tag="form" for="Fornecedor"> the
> same error is showed.
> 
> If instead I try to change the form tag by adding the following code
> to Application.dryml:
> 
> <def tag="form" for="Lote">
>   <form merge param="default">
>     <error-messages param/>
>     <field-list fields="nome, data_entrada, artigo" param/>
>     <div param="actions">
>       <submit label="#{ht 'lotes.actions.save', :default=>['Save']}"
> param/><or-cancel param="cancel"/>
>     </div>
>   </form>
> </def>
> 
> Nothing happens and the form is showed exactly as it is defined in the
> forms.dryml
> 
> I'm using:
> hobo (1.0.1)
> hobofields (1.0.1)
> hobosupport (1.0.1)
> rails (2.3.8)
> mongrel (1.1.5)
> 
> Bellow you can see the stacktrace:
> 
> /Library/Ruby/Gems/1.8/gems/hobosupport-1.0.1/lib/hobo_support/fixes/
> module.rb:14:in `alias_method'
> /Library/Ruby/Gems/1.8/gems/hobosupport-1.0.1/lib/hobo_support/fixes/
> module.rb:14:in `alias_method_chain'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:73:in
> `send'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:73:in
> `included'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:69:in
> `each'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:69:in
> `included'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:114:in
> `include'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:114:in
> `send'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/taglib.rb:114:in
> `import_into'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/dryml_builder.rb:
> 122:in `import_taglib'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/dryml_builder.rb:
> 76:in `build'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/dryml_builder.rb:
> 76:in `each'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/dryml_builder.rb:
> 76:in `build'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/template.rb:
> 73:in `compile'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml.rb:173:in
> `compile_renderer_class'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml.rb:159:in
> `make_renderer_class'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml.rb:95:in
> `page_renderer'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml.rb:73:in
> `empty_page_renderer'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml.rb:66:in
> `render_tag'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/
> template_handler.rb:55:in `call_dryml_tag'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/dryml/
> template_handler.rb:75:in `render_for_file'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:978:in `render_without_benchmark'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> benchmarking.rb:51:in `render_without_hobo_model'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> benchmarking.rb:51:in `render_without_hobo_model'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/model_controller.rb:
> 818:in `render'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:1326:in `default_render'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:1332:in `perform_action_without_filters'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:617:in `call_filters'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:638:in `run_before_filters'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/controller.rb:23:in
> `call'
> /Library/Ruby/Gems/1.8/gems/hobo-1.0.1/lib/hobo/controller.rb:23:in
> `included_in_class'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> callbacks.rb:182:in `call'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> callbacks.rb:182:in `evaluate_method'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:184:in `call'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:635:in `run_before_filters'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:615:in `call_filters'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:610:in `perform_action_without_benchmark'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/
> core_ext/benchmark.rb:17:in `ms'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> rescue.rb:160:in `perform_action_without_flash'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> flash.rb:151:in `perform_action'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:532:in `send'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:532:in `process_without_filters'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> filters.rb:606:in `process'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:391:in `process'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> base.rb:386:in `call'
> /Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/
> routing/route_set.rb:438:in `call'
> 
> Can anyone help me?
> Thanks.
> 
> Best regards,
> Hugo

-- 
Henry Baragar
Instantiated Software

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