Working with better_error gem was a great experience
But scratched my head for days with the problem:
Every time after having gem “better_errors” resulted in same default error page. Finally got the solution saying that “You need to be on localhost to use better_errors”
The thing is i had been developing in a Ubuntu VM on a Windows 7 view vm and browsing the site from Windows. Although it’s a security risk, you can allow this by following the instructions here: https://github.com/charliesome/better_errors#security
A variation on the above solution is: To put this in config/environments/development.rb:
$ BetterErrors::Middleware.allow_ip! ‘<IP Address>’
For me i was hosting on xy.xyz.ab.cd(say) but was not working as my env dump was different.
So i assigned to the REMOTE_ADDR(my local system address): “xy.abcd.pqr.z”(say)
Have a look to the default page error at the env dump and know better.