Ouch.  The problem occurs because there's no carriage return after
video, which happens to be the last tag in the file.

Bryan

On Thu, Jan 12, 2012 at 7:49 AM, Ignacio Huerta <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> We are trying to use a < video > tag in a Hobo 1.3.0 app. We are using:
>
> <show-page>
>  <before-field-list:>
>
>    <video width='320' height='240' controls='controls' preload='none'>
>      <source type='video/webm' src='/videos/original/4.webm' />
>    </video>
>
>  </before-field-list:>
>  <field-list: fields="name, description, video_type"/>
> </show-page>
>
>
>
> And Hobo is complaining (I'll just paste the first lines of the trace):
>
> undefined method `video' for #<#<Class:0xc7b6748>:0xcb1ac90>
> dryml (1.3.0)
> lib/drymllib/dryml/static_tags/template_environment.rb:606:in
> `method_missing'
> app/views/sections/show.dryml:4:in `block (3 levels) in render_page'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `block in
> new_context'
> actionpack (3.0.10) lib/action_view/helpers/capture_helper.rb:172:in
> `with_output_buffer'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `new_context'
> app/views/sections/show.dryml:2:in `block (2 levels) in render_page'
> dryml (1.3.0) lib/dryml/template_environment.rb:440:in `call'
> dryml (1.3.0) lib/dryml/template_environment.rb:440:in
> `call_tag_parameter'
> app/views/taglibs/auto/rapid/pages.dryml:233:in `block (6 levels) in
> show_page__for_section'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `block in
> new_context'
> actionpack (3.0.10) lib/action_view/helpers/capture_helper.rb:172:in
> `with_output_buffer'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `new_context'
> app/views/taglibs/auto/rapid/pages.dryml:231:in `block (5 levels) in
> show_page__for_section'
> dryml (1.3.0) lib/dryml/template_environment.rb:474:in `call'
> dryml (1.3.0) lib/dryml/template_environment.rb:474:in `block in
> override_and_call_tag'
> dryml (1.3.0) lib/dryml/tag_parameters.rb:19:in `call'
> dryml (1.3.0) lib/dryml/tag_parameters.rb:19:in `method_missing'
> hobo (1.3.0) lib/hobo/rapid/taglibs/rapid_document_tags.dryml:21:in
> `block in section'
> dryml (1.3.0) lib/dryml/template_environment.rb:344:in `block in
> _tag_context'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `block in
> new_context'
> actionpack (3.0.10) lib/action_view/helpers/capture_helper.rb:172:in
> `with_output_buffer'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `new_context'
> dryml (1.3.0) lib/dryml/template_environment.rb:344:in `_tag_context'
> hobo (1.3.0) lib/hobo/rapid/taglibs/rapid_document_tags.dryml:20:in
> `section'
> dryml (1.3.0) lib/dryml/template_environment.rb:481:in
> `override_and_call_tag'
> dryml (1.3.0) lib/dryml/template_environment.rb:444:in
> `call_tag_parameter'
> app/views/taglibs/auto/rapid/pages.dryml:231:in `block (4 levels) in
> show_page__for_section'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `block in
> new_context'
> actionpack (3.0.10) lib/action_view/helpers/capture_helper.rb:172:in
> `with_output_buffer'
> dryml (1.3.0) lib/dryml/template_environment.rb:263:in `new_context'
>
>
>
>
> I've looked into the dryml 1.3.0 gem, and I've found out that the
> video tag is already in lib/dryml/static_tags. Any idea why Hobo is
> trying to run video as a method instead of just printing it?
>
> Regards,
> Ignacio
>
> - --
> Ignacio Huerta Arteche
> http://www.ihuerta.net
> Teléfono: 0034 645 70 77 35
> Email realizado con software libre
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk8O1vAACgkQBPlUJ6RHaOS8bwCgpk7ODPJESg8WShk1hdywAffv
> DgAAnR02qrAZWg6WltJFMtOAUaQoq2G6
> =C1ry
> -----END PGP SIGNATURE-----
>
> --
> 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.
>

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