I hadn't thought that I would have so much hassle with HTML


#1


https://www.codecademy.com/courses/ruby-beginner-en-Qn7Qw/1/4?curriculum_id=5059f8619189a5000201fbcb#


Apparently, strings aren't being converted to symbols.
Especially HTML
ERROR:
"Oops, try again. It looks like HTML isn't a symbol."

strings.each do |string|
    for string in strings
        string.to_sym
        symbols.push(string)
    end
end

Yes, I know it's probably clickbait, but I just DON'T KNOW what's wrong with HTML and being a symbol...


#2

Because you're not pushing them as symbols.

First, did you create a variable symbols that stores an empty array?

Second, simplify your code. Everything between for and end could be reduced to one line. You also don't need for and end.

Between the parentheses, add something to string.


#3

Thanks!
Your post helped me, so you get a small tree. :evergreen_tree:


#4

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