I’m trying to take an array value and assign it to a div class.
-values.each do |values|
%p= values[0]
%p= values[1]
Results in what you would expect. Proving that values[0] and values[1] contain data and they are working.
I fiddled around with it trying different things and this is as close as I can get:
-values.each do |values|
- div = values[1]
-.div= values[0]
Which then throws this error:
undefined method `div=’ for “day”:String
And the string “day” is in values[1]
Any Ideas?
1 Answer