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 trial

Ruby

[INFO] Ruby on Rails error - Missing Helper File

I wrote a blog post today - I thought I'd share as it might be relevant for those doing the Ruby on Rails courses.

/** START POST

Here's the post - please ask if this makes no sense!

We came across an odd error today and managed to find a fix for it so we thought it best to share the solution!

Later updates of Ruby on Rails will probably fix this as there’s a bug in the current versions. We think this is just an issue with Mac OSX but may be wrong.

We’re currently running OSX Yosemite with Ruby version 2.2.1p85 on Rails 4.2.1.

The issue first came up when running some RSPEC tests – it was saying that there was a missing helper file:

Missing helper file helpers//users/***/***/**/App_name/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError)

Very strange!

Anyway, we found the cause was how the capitalisation in the file path was handled in Ruby. Changing the above App_name from a capitalised initial to a lower case app_name fixed the error. Hopefully, the Ruby guys n’ gals will follow suit and fix the bug soon! There’s a thread on Github too.

END POST **/

Hope that's of use to someone!! And thanks to Big Dog Consultants Ltd for the time spent solving it!

Steve.