Contributing to Ruby on Rails - Some problems to start

I’m trying to start with Rails contributions. I read the guide (
Contributing to Ruby on Rails — Ruby on Rails Guides) 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).


    Agustin Viao

Web D.

Ruby - Ruby On Rails - Cucumber

m: [email protected]
g+: http://profiles.google.com/agustinvinao
l: http://ar.linkedin.com/in/agustinvinao
t: http://twitter.com/agustinvinao
f: http://www.facebook.com/pages/AgustinVinao/145742672139808
w: http://www.agustinvinao.com.ar
f: Salto a Ciegas

On Sep 5, 8:51pm, Agustin Nicolas Viao Laseras
[email protected] wrote:

I’m trying to start with Rails contributions. I read the guide
(Contributing to Ruby on Rails — Ruby on Rails Guides) 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.

Agustin Viao

Paradox: Life is a mystery. Don’t waste time trying to figure it out.
/ *
Humor*: Keep a sense of humor, especially about yourself. It is a
strength
beyond all measure. / Change: Know that nothing stays the same.
Web D. - Ruby - Ruby On Rails - T.D.D.

m: [email protected]
g+: http://profiles.google.com/agustinvinao
l: http://ar.linkedin.com/in/agustinvinao
t: http://twitter.com/agustinvinao
f: http://www.facebook.com/pages/AgustinVinao/145742672139808
w: http://www.agustinvinao.com.ar
f: Salto a Ciegas

On Tue, Sep 6, 2011 at 5:58 AM, Frederick C.
<[email protected]