Ruby On Rails : RuntimeError : Circular dependency detected

I faced this error and logged it so that any other who faces this error should not waste useful time on fixing this:

RuntimeError in Users::SessionsController#new

Circular dependency detected while autoloading constant SharedHelper

Extracted source (around line #1):
Advertisements