Fixing "config.breakpoint_server has been deprecated and has no effect" when using Rails Edge
You might get this error if you’re using Rails Edge: config.breakpoint_server has been deprecated and has no effect:
To fix the error we need to remove the following from config/environments/development.rb:
1 config.breakpoint_server = true
Next install ruby-debug:
1 gem install ruby-debug
Then add this to the end of config/environments/development.rb:
1 require 'ruby-debug'
Next, start your server, and the error should be gone…
To debug your code just add a call to debugger:
1 class MySillySpace ... 2 def create 3 debugger # add this line 4 end
Now when you access the URL with your browser you’ll have access to the debugger from the console window.
To learn how to use ruby-debug, read this tutorial written by the ruby-debug author.
Fixing "warning: already initialized constant OPTIONS"
If you’re using Edge Rails and mongrel you might have seen this error:
1 warning: already initialized constant OPTIONS
There’s a bug report here that explains this problem in detail.
The solution for me was to rerun the freeze command:
1 rake rails:freeze:edge
You might also get “warning: already initialized constant OPTIONS ” error if you haven’t installed a gem your software relies on. In the following example openssl should be installed:
1 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load—openssl (MissingSourceFile)
ActiveResource might also be the problem:
1 gem install activeresource --source http://gems.rubyonrails.org