Print simple x*x table in ruby

I’ve needed to print simple table as

as you can see, x = y, cell in table = x*y (x*x to be exact)

Calculate prime numbers

Tried simple Sieve of Eratosthenes in Ruby …

we can add some tests

How to get line number and file of your RoR code

add czech pluralize to i18n

Rails 2.1.0 – named_scope

New version of rails comes with a great feature called named_scope.

# in your model.rb

and you can use its as:

# somewhere in your code