Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialeduardo nigma
411 PointsMissing helper error, how i fix that?
i run my server, it said the migration error and when i fixed it told me this: Missing helper file helpers//users///**/App_name/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError) i dont know how to fix it, any clues?
2 Answers
Steve Hunter
57,712 PointsHi Eduardo,
I came across this a few years ago and it took me ages to figure out. I thought the Ruby core had fixed the issue but maybe it still persists in some places.
My solution was to ensure the path to the app, including the app name, were all lowercase. That fixed it for me.
I'll see if I can find the Github thread on the same subject ... I'll post it if I do. I'm sure this is the same issue; my recollection may be incorrect.
I'll be back with more info ...
Steve.
Steve Hunter
57,712 PointsFound it ... I even wrote a blog post about it on my company web page! Have a read here. There's a link to the Github page too.
Let me know how you get on.
Steve.
eduardo nigma
411 Pointsso, when we create a new app, i should write rails new app_new ?
what if i want to create a scaffold, should i put rails generate scaffold Post title:string or the 'Post' in lowercase?
ok ill show what i did:
rails new app_new
cd app_new
rails generate scaffold Post title:string
rails db:migrate
rails server
and told me that...
do you know what is the issue?
Steve Hunter
57,712 PointsFrom memory, I just changed the folder name to be lowercase - the name of the app didn't change.
eduardo nigma
411 Pointsyou can also check the explanation i gave in stackoverflow i think is better http://stackoverflow.com/questions/43992520/abstractcontrollerhelpersmissinghelpererror-missing-helper-file-helpers?noredirect=1#comment75043353_43992520
eduardo nigma
411 Pointsi update the ruby gems and now its working, thank you anyways