Topic: "NameError: undefined local variable or method `config' for" error
I am just learning ruby and rails and I am trying to refactor some code and have run into a problem that has me stumped and that I think may just be a configuration problem. I installed Ruby and Rails as well as a few gems and when I run rspec on the code I get the following failure:
"NameError: undefined local variable or method `config' for #<collector:0x3955140>"
The line of code that is tied to the error above is:
I have read through a bit of documentation trying to figure out what my problem may be and have found that image_tag is in the module ActionView::Helpers::AssetTagHelper and I think I installed the actionview module correctly, could this error indicate I have not done so?
I also suspect I may need to do more to setup the project I am working on, all that I have done so far is have a directory with my ruby script .rb files and then my spec file I run rspec on to refactor the code. Do I need to setup more in my project and if so what?
I am sorry if these are noob questions but I definitely am a beginner and after searching quite a while I am still stuck. Thank you for the help.