Displaying 1 result from an estimated 1 matches for "communications_type_id".
2006 Jan 31
4
A dumb question on extracting a value from a hash
...escription) = "EMAIL"'')
Which results in
>> @comm_type
=> [#<Communication:0x39a0f60 @attributes={"id"=>"4"}>]
But when I try to test an ActiveREcord against this it doesn''t work;
@recipient.communications.each do |comm|
if comm.communications_type_id == @comm_type
@email_address = comm.code
end
end
What do I need to write to get at that value in the hash. Sorry it''s
such a dumb question :~(
Cheers,
Eric.