[Rails] Re: check for empty? in the view

2008-12-03 Thread mahmoud said
On Wed, Dec 3, 2008 at 5:22 PM, Martyn Elmy-liddiard < [EMAIL PROTECTED]> wrote: > > mahmoud said wrote: > > On Wed, Dec 3, 2008 at 4:30 PM, Martyn Elmy-liddiard < > > [EMAIL PROTECTED]> wrote: > > > >> Thanks Fred but I still get an error:- > >> ...etc > >> > >> > >> and the error I get is:-

[Rails] Re: check for empty? in the view

2008-12-03 Thread Martyn Elmy-liddiard
mahmoud said wrote: > On Wed, Dec 3, 2008 at 4:30 PM, Martyn Elmy-liddiard < > [EMAIL PROTECTED]> wrote: > >> Thanks Fred but I still get an error:- >> ...etc >> >> >> and the error I get is:- >> >> You have a nil object when you didn't expect it! >> The error occured while evaluating nil.yea

[Rails] Re: check for empty? in the view

2008-12-03 Thread mahmoud said
On Wed, Dec 3, 2008 at 4:30 PM, Martyn Elmy-liddiard < [EMAIL PROTECTED]> wrote: > > Frederick Cheung wrote: > > On Dec 3, 1:59?pm, Martyn Elmy-liddiard <[EMAIL PROTECTED] > > s.net> wrote: > >> > > don't think you need anything more than if docv.policy > > > > Fred > > > Thanks Fred but I still g

[Rails] Re: check for empty? in the view

2008-12-03 Thread Martyn Elmy-liddiard
Frederick Cheung wrote: > On Dec 3, 1:59?pm, Martyn Elmy-liddiard <[EMAIL PROTECTED] > s.net> wrote: >> > don't think you need anything more than if docv.policy > > Fred Thanks Fred but I still get an error:- I gave a vey simple example and it may be fairer to give a slightly different exampl

[Rails] Re: check for empty? in the view

2008-12-03 Thread Frederick Cheung
On Dec 3, 1:59 pm, Martyn Elmy-liddiard <[EMAIL PROTECTED] s.net> wrote: > > <% @docversions.each do |docv| %> > > <% docv.modifier %> > <%= docv.comment %> > <%= docv.policy.PolicyName if docv.policy_id %> > <%= docv.standard.StandardsName if docv.standard_id %> > > Can someone advise the synt