HTML5 video tag

29 views
Skip to first unread message

Ignacio Huerta

unread,
Jan 12, 2012, 7:49:52 AM1/12/12
to hobousers
-----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-----

Bryan Larsen

unread,
Jan 12, 2012, 12:12:52 PM1/12/12
to hobo...@googlegroups.com
Ouch. The problem occurs because there's no carriage return after
video, which happens to be the last tag in the file.

Bryan

> 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 hobo...@googlegroups.com.
> To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
>

Bryan Larsen

unread,
Jan 12, 2012, 12:20:30 PM1/12/12
to hobo...@googlegroups.com

Ignacio Huerta

unread,
Jan 12, 2012, 1:39:50 PM1/12/12
to hobo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you very much Bryan, that was it, now it works perfectly!

Regards,
Ignacio

El 12/01/12 18:12, Bryan Larsen escribi�:


> 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

> <ign...@ihuerta.net> wrote: Hi,

>> -- You received this message because you are subscribed to the
>> Google Groups "Hobo Users" group. To post to this group, send
>> email to hobo...@googlegroups.com. To unsubscribe from this
>> group, send email to hobousers+...@googlegroups.com. For
>> more options, visit this group at
>> http://groups.google.com/group/hobousers?hl=en.
>>
>

- --

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/

iEYEARECAAYFAk8PKPQACgkQBPlUJ6RHaORR1ACg9eFXiLxuWEaisNH/TAgiIKEG
EiAAnRKcEeMJP6+uwAE7R73g2kpHHFNS
=8u06
-----END PGP SIGNATURE-----

paulj...@gmail.com

unread,
Jun 5, 2012, 1:05:07 AM6/5/12
to hobo...@googlegroups.com
I don't know when the 1.3 gem was built - did this change make it in to that release?

Ignacio Huerta

unread,
Jun 5, 2012, 4:10:32 AM6/5/12
to hobo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don't think so, 1.3.0 was released in November, and I just took a
quick look at the source in my local gem and the fix is not there.

As a workaround you can use the gem from Github, or you can make the
fix manually in your local gem.

Regards,
Ignacio

El 05/06/12 07:05, paulj...@gmail.com escribi�:
<https://github.com/tablatom/hobo/commit/41d1956613703b36b59a086eda4fb465cab533db>
>
> cheers, Bryan
>
> -- You received this message because you are subscribed to the
> Google Groups "Hobo Users" group. To view this discussion on the
> web visit
> https://groups.google.com/d/msg/hobousers/-/_jlihMty_0YJ. To post
> to this group, send email to hobo...@googlegroups.com. To
> unsubscribe from this group, send email to
> hobousers+...@googlegroups.com. For more options, visit
> this group at http://groups.google.com/group/hobousers?hl=en.

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

iEYEARECAAYFAk/NvvgACgkQBPlUJ6RHaOQBSgCg6sjlS4iUKWEXMHOmcraw3snA
8ogAoPa6YulutNqMNKWs4iEUBCwdUuk6
=0Ber
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages