On 20 October 2010 13:24, PalaniKannan K <[email protected]> wrote:
> Dear Collin,
>
> On 20 October 2010 13:10, Colin Law <[email protected]> wrote:
>>
>> On 20 October 2010 11:13, PalaniKannan K <[email protected]> wrote:
>> > Hi,
>>
>> Do you realise you are doing nothing at all with all the other members
>> of the array?  If that is what you want then why bother to iterate
>> through the array, just display element 0.
>
>  Thank you for your point out.
>>
>> Not related to your question but it is better to use css rather than
>> inline font tags.
>
>  Its working with "source.strains[0].appendix". Thank you for helping out to
> find the issue.

Don't forget to check for the case where the array is empty (so
strains[0] will be nil) unless it is impossible for the array to be
empty.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to