I'm a believer in reading someone else's code to improve your own skills, and in Ruby more than in other languages it's easy to get started.
I don't know how much you know right now, but the simplest way I've found ways to contribute is by taking a Rails application, looking through the Gemfile and seeing how complex those are (an easy heuristic to do this is just to take a the number of files that the gem has). Keep in mind that the gems I'm talking about are not the default ones in Rails (most of those will be complicated enough for an experience developer). I'm talking about the stuff you use everyday like Devise, Mustache or Fabrication.
If you haven't written any semi-complex applications using Rails you can always find open source Rails or Sinatra projects and see what their dependancies are.