Now You Can Have Better Youtube Integration with Ruby on Rails

I recently wanted to upload, edit, update and delete a video directly on youtube from my rails application. This can be achieved by YouTube Data API that allows application to perform functions normally executed on youtube. Step 1 : Demystifying Authentication with Google AuthSub Google provides an authentication service to those web applications that need to access services protected by a user’s Google account. I chose Google’s ‘AuthSub’ scheme for this. This also provides a high level of security to web application. The AuthSub interface provides several methods for acquiring and managing authorization tokens. Once a web application has received a token, it can request access to…

Categorized as rails-tip

Ever tried Rails.root

Guys, have you ever tried Rails.root. It gives same value as RAILS_ROOT. But now in edge rails it is modified and you can do much more with it.
You can use Rails.root at places like:

File.join(RAILS_ROOT, ‘public’, ‘images’)


Rails.root.join(‘public’, ‘images’)

Both gives the same result.