e x p r e s s i c a

ruby on rails, business and technicalities

Archive for the ‘ruby’ Category

It was ruining all my mood and concentration when i was trying some sample ruby code in irb and again and again i had to retype the things because the arrow keys were not working there. I searched the problem on net and found that i need to have readline  [ Read More ]

While installing RMagick on Linux, if you are getting errors like this “GraphicsMagick-config… no configure: error: Can’t install RMagick. Can’t find Magick-config or GraphicsMagick-config program. …”, below is the solution for this error. RMagick requires ImageMagick and which further requires loads of dependencies already available to get installed and work  [ Read More ]

Hi all, I found an answer(a tweak) to the question which was pinging my mind while working on my current project that How to validate one or more specific attribute of the model(field of the table i mean)?, as the requirement was to save a record after validating the model’s  [ Read More ]

Ruby is DuckTyped

NOTE : This post may contains repeated and boring stuff for those who already have the programming practice of DuckTyping. What is Duck Typing ? Duck Typing is Dynamic Typing In ruby we do not declare the type of the variable. It automatically becomes the object of the related class.  [ Read More ]

Simple Captcha 1.0

Update: SimpleCaptcha 1.2.2 is up!! Major Changes… FileSystem Usage Removed Works Perfectly with Multiple Clustered Servers Read Here for more details on implementation, usage and examples.

class

Doing meta-programming in ruby gives all new ways of getting closer to ruby. There are a lots of Ruby Idioms that attracted a lots of programmers to fall in love with Ruby-Lang. class << self; self; end is a ruby idiom which gives the Big Picture of coding-less and producing-more  [ Read More ]

The Matz

Yokihiro Matsumoto (Matz) The Living Legend, The Great Person, The Matz. Creator of Ruby, the most beautiful programming language.