Saturday, 28 September 2013

uninitialized constant StartPoint::UserControllerMixins

uninitialized constant StartPoint::UserControllerMixins

I created a file under my lib/start_point/user_controller_mixins that
looks something like this:
module StartPoint
module UserControllerMixins
# code ...
end
end
In the Application Controller, I call this file by doing:
include StartPoint::UserControllerMixins. But when I visit the site I get
the error: uninitialized constant StartPoint::UserControllerMixins, Now
this is is being used as an rspec helper, so in the spec helper I have
done:
RSpec.configure do |c|
c.include StartPoint::UserControllerMixins
end
And all of capybara and all of rspec tests that I have written, they all
work as expected.
But when I visit the site in the browser I get the error as seen above.
Thoughts?

No comments:

Post a Comment