Source code and sample available at: https://github.com/prabgupt/youtube_video_upload_plugin Usage: Please note that sample is available for RoR3 but it can be easily converted for any underlying platform. Refer README in git repo above to know how to run it in RoR3. To see how to tweak code to use it for any other platform, keep reading the […]
Rails 3
What to cache and what not to! – Rails
With fragment caching floating around it always remain to decide how small piece of code should I cache. Is it worth caching a code as it renders a partial, or just because it has a few lines of HTML/ JS / Ruby code, or it makes a few DB calls to fetch data. This blog […]
Debugging Production – Ruby on Rails
Stuck with Rails debugging? Here are some useful Commands that you should know and will help you in diagnose your system. First few commands are in general for any production environment. Last few ones are specific to ruby on rails. This is basic diagnose and my next post will elaborate more on the various tools […]
Private Chat Room in Ruby on Rails 3.0
This sample will let you develop a private chatRoom using juggernaut. It push chats in realtime based on publish/subscribe model, hence making it extremely fast and scalable. Resources Nodejs – http://nodejs.org/ Redis – http://code.google.com/p/redis/ Juggernaut – https://github.com/maccman/juggernaut/ JQuery – http://mirror.ozdiy.com/assets/b8/2f96a12bc919b37e09d303b86ea1b9_1251811910.html Getting started 1. Install node-v0.2.5 – Download 2. Install redis 2.0.4 – Download 3. Run […]
Ruby on Rails 3 – Flickr API for photo search
This post shows how to show images using Flickr API on your Rails 3 application. Some notables: You need to get flickr API key from Flickr website You do not need any plugin or gem to be installed for rails 3 This tutorial explains two things How to get images using Flickr API How to […]