Hello again
Urm, okay, stupid question time (first of many no doubt but…
where are you declaring/instantiating/vivifying @pays ? show the
controller code where you are, as well as the wrapping ‘lines’ (maybe an
error with your reseting it or… something equally crazy
Can you show us the code that assigns to @pays? Notice that it says
nil.each,
that tells us @pays is nil not each ‘pay’ record because you only ever
call
their id and name attributes.
You’re also use ‘x’ as your element name, yet trying to reference ‘pay’
typo?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.