I am trying to check if a set pset(aka problem set) exist in an array in order to display the correct page but the following code always returns true…
def c
allowed_psets = [1]
pset_id = 12323
if allowed_psets.include?(pset_id)
//do something here
else
render_404//error
end
end
do i miss something here?
working code: