Undefined method 'each' for nil:NilClas


#1

why is it showing so??


#2

It doesn't make sense to call each on nil
You'd do it on an array or some other iterable


#3

<% @destinations.each do |p| %>
i have did this
@destinations has data


#4

Your error message says otherwise


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.