Joins, paginate and casting an integer to a string


I need some help please.

I have two tables:


Hi Jez,

:account belongs_to :decription
:description has_many :accounts

and of course Account table must include a foreign key to the
description table (Default being used is accdesc_id)

integer casting:

you have 3 options:
1. use interpolated string => "Elad is #{@programmer.age.to_s} years
2. concat strings => "Elad is " + @programmer.age.to_s + " years old"
3. when setting a condition in sql query => SuperHero.find(:first,
:conditions => ["power_count = ?", @power_count_needed].

any questions, i'm on

hope this helps.