Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

Posts Tagged ‘Ruby’

Error Connecting to MySQL using Ruby on Rails in Linux – and its Solution

By Binny V A • Apr 3rd, 2009

I am currently working on a new Rails project. Its been a while since I worked with rails – so I updated Rails using the command ‘sudo gem update --system‘. I started the inbuilt server and tried to open a page – and to my surprise, I found that Rails is having trouble connecting to the MySQL server. It was apparent that the mysql gem was missing. So I tried to install it using the command ‘sudo gem install mysql‘. That failed too – this is the error I got…



Hello Script for Ruby

By Binny V A • May 1st, 2008

Hello Script is a file that contains the most commonly used elements of a programming language so that it can be used as a cheatsheet when working with that language. This Hello Script for Ruby is the sixth post in this series.
I have some experience with Ruby. I will not call myself an expert – [...]



Installing the acts_as_taggable Rails Plugin

By Binny V A • Dec 20th, 2007

You don’t have to write a lot of code to get tagging support in your Ruby on Rails application – you just have to install a plugin. This is how you install the ‘acts_as_taggable’ plugin…
First go to the Ruby on Rails application folder and open a terminal at that location. Now run this commad…
ruby script/plugin [...]



Creating PDF in Ruby on Rails – PDF::Writer

By Binny V A • Nov 12th, 2007

PDF::Writer is my choice for creating PDF files in Ruby on Rails. Its simple, easy to use, and has all the features I am looking for.