Youtube pagination

Hi
I m able to get the videos from youtube using youtube-g ,now
doing an pagination

for youtube videos for 4 pages

my controller code is

class VideosController < ApplicationController
def index
client = YouTubeG::Client.new
@videos=client.videos_by(:query => “penguin”, :page =>
4, :per_page => 2)
end

end

view is

Videos

<% @videos.videos.each do |v| %> <%= v.title %>

<%= v.html_content %>

<%= v.embed_html %> <% end %>

this is my code for getting videos from youtube,now facing problem in

pagination because in the query i mentioned 2 pages but i m getting

only one page and i have not added pagination code for it.can u help

me to code to include page option for four pages…

regards
raghu

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs