Hi, I have an issue with a variable creating an array...
First, I initialize the array.
Code:@data = []
Then I add the data.
Then I display the resultsCode:@data << [...]
It works great... but if I change the variable name to @x it fails and display an empty array...Code:<% @data.each do |data| %>
I dont understand why.
Any help please?


Reply With Quote


Bookmarks