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(
GitHub - edgarjs/youtube-model: Allows you to generate an ActiveResource model ready to interact with the You Tube API.), 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/