Hello,
I need some help please.
I have two tables:
accounts
Hello,
I need some help please.
I have two tables:
accounts
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
old"
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 elad@creopolis.com
hope this helps.