Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4605464
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:26:08+00:00 2026-05-22T00:26:08+00:00

I am new to using youtube-g gem and i would like to embed a

  • 0

I am new to using youtube-g gem and i would like to embed a youtube video rapper that plays videos on my rails app hosted from youtube. pls does anyone know a youtube-g tutorial or another gem with a simpler readme and documentation that can help. So also a quick tutorial help as an answer would be great

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:26:09+00:00Added an answer on May 22, 2026 at 12:26 am

    The ‘youtube-g’ gem was actually replaced by the ‘youtube_it’ gem located here: https://github.com/kylejginavan/youtube_it

    If all you want to do is a regular embed of a youtube video, you can just use this wrapper (HAML syntax):

    %iframe{:title => "YouTube video player", :class => "youtube-player", :type => "text/html", :width => "425", :height => "349",:src => @your_model_name.video_link, :frameborder => "0", :allowFullScreen => true, :id => 'my_video_player' }
    

    If you want to dynamically pull videos from your youTube channel you need to create a client and pull the stream like so:

    client = YouTubeIt::Client.new( :username => 'your_user_name', :password => 'you_password', :dev_key => 'your_api_key')
    results = client.videos_by(:user => 'your_user_display_name')
    

    That will give you a VideoSearch Object. If you wanted to iterate through all of those video objects:

    results.videos
    

    That will return an array of Video objects where you have access to all of these attributes listed here: http://rubydoc.info/gems/youtube_it/1.4.1/YouTubeIt/Model/Video
    This includes the YouTube url. If you wanted to use the player and and url on your page, you can just do some regEx to extract the video_id and build it yourself. Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using OpenYoutubeActivity.jar to play youtube videos like this Intent videoIntent = new
I can't work out how to autoplay a video using the new embed code
I am updating a DOM object on a javascript front-end that plays youtube video
when using new Date,I get something like follows: Fri May 29 2009 22:39:02 GMT+0800
I am making a rails(3.0.11) application using youtube_it api. My index action of videos
I have an application in which I have manually uploaded videos using Youtube Data
I have a project for a client that will be using a YouTube comment
I'm using PHP and the YouTube API to get videos from YouTube to feed
I am playing youtube video on iPad via webView using this code. NSString *htmlString
I am looking to parse XML data (using this URL: https://gdata.youtube.com/feeds/api/videos/ijudAdhLGmg?v=2 ) and get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.