Contributing to Ruby on Rails - Some problems to start

I’m trying to start with Rails contributions. I read the guide (http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html) and I have some issue, if someone knows of this, I need help:

  • What version of Ruby do you use when you work in this?
  • Is possible debug the Rails branch code? (I mean the local copy of the code)
  • If is possible debug the code, Do you make a new brach each time you want to see a bug or issue? (I don’t say the moment when you fix the bug o make a test, I mean the moment when you try to reproduce it).

I'm trying to start with Rails contributions. I read the guide (http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html) and I have
some issue, if someone knows of this, I need help:
- What version of Ruby do you use when you work in this?

The officially supported versions are 1.8.7 and 1.9.2 if I remember
correctly. I would start would one of those and make sure that the
tests passed with both at the end

- Is possible debug the Rails branch code? (I mean the local copy of the
code)

Not sure what you mean by that

Fred

I found how to debug with Ruby 1.9:

http://dirk.net/2010/04/17/ruby-debug-with-ruby-19x-and-rails-3-on-rvm/

Sorry for my english, isn’t my native language.

When i say ‘debug the master branch of rails’ I solved like this:

  1. clone the rails master branch localy

  2. create an app in dev state (ruby path/to/rails new app_name --dev)

  3. uncomment in Gemfile the line

gem ‘ruby-debug19’, :require => ‘ruby-debug’

When you access to the console in your app (ruby /path/to/rails c --debugger), if you put “debugger” in the rails code in /path/to/rails and generate a call to that method with the debugger line will work.

NOTE: path/to/rails is the local copy of the rails master branch.