I'd like to use the gem "better_errors" with my rails 3.2 application, but it's still the default error page who's displayed.
In my Gemfile :
group :development do
gem 'quiet_assets', '>= 1.0.1'
gem 'better_errors', '>= 0.3.2'
gem 'binding_of_caller', '>= 0.6.8'
end
I did a "bundle install" and then
bundle show better_errors
/usr/local/lib/ruby/gems/1.9.1/gems/better_errors-0.5.0
Everything seems to be well configured.
I run my rails server in development environment
rails s -e development
Any ideas? Thanks a lot.
I scratched my head for days with the same problem. I finally e-mailed Charlie and he replied an hour or so later with my answer: "You need to be on localhost to use better_errors"
I had been developing in a Ubuntu VM on a Windows 7 host 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
I hope this resolves your issue.
add line to ./config/environments/development.rb
BetterErrors::Middleware.allow_ip! "CLIENT_IPADDR"
and, restart rails-server
You can follow this episode of railscast:
http://railscasts.com/episodes/402-better-errors-railspanel
This is my group development
with better_errors
gem:
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'meta_request'
end
You can follow these steps:
Update better_error
gem to the last version!.
1º uninstall current version
of better_error
gem with command gem uninstall better_errors
.
2º Then Remove '>= 1.0.1'
, '>= 0.3.2'
, '>= 0.6.8'
of your gem file and run the command bundle install
Regards!
Can you try a bundle update? as the current version I have is 0.6.0.
Also I don't use the config/initializers/better_errors.rb file
Check in the server logs if you are not having 500 Internal Server Errors, when I've got them at the models after an ajax update I don't see the better_errors page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With