I know this code makes no sense (that im randomly testing), but im just trying to understand how ruby works. I do not understand why title to_sym = rating.to_i doesn't work. Any help or enlightenment is greatly appreciated.
Error message as follows
undefined method `to_sym=' for "dog":String
title = "dog" rating = "3" title.to_sym = rating.to_i