Your are assigning a key of :id to result, but accessing a key
of :acl_id in the seconds assignment.
It is not clear what your intentions are with :allow=>allow - is
allow defined somewhere, or did you mean :allow=>result[:allow] ??
Thanks Derek, appears it was a simple typo. Shortly after I sent this I
fixed a bug with the local allow variable which wasn’t testing for (t|f)
but
rather 1|0. After that was fixed, one of the nil’s was removed, this
explains the other.
Warmest regards,
Nathan.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.