Upload video to YouTube from rails app

Hello. I have some question, how can upload video to youtube from rails app?

After searching I find rails plugin youtube-model( https://github.com/edgarjs/youtube-model), but he have a very bad examples: weired code blocks, deprecated methods.

Anybody use this plugin? or another for this question? helpful code examples?

Cheers

Mechanize is a great gem to write 'automate like' tasks like yours. Maybe this link can help

http://tenderlovemaking.com/2008/02/26/automated-youtube-uploads/