How to use a local copy of rails in a rails application

Sorry for a primitive question, but how can i use a local copy of rails
with my rails 3 application (locally)?

Quick googling didn't help, and on StackOverflow there is something
about putting local rails to the "vendor" directory, but it does not
seem to work for me.

Thanks.

Alexey.

Sorry for a primitive question, but how can i use a local copy of rails
with my rails 3 application (locally)?

Quick googling didn't help, and on StackOverflow there is something
about putting local rails to the "vendor" directory, but it does not
seem to work for me.

Thanks Craig, this works!
And i think i've found and fixed my first bug in rails.

Can you clarify exactly what you mean please? Give an example of what
you are trying to achieve. Also tell us which version(s) of rails you
are interested in as the answer may vary.

Colin

Colin Law wrote in post #1034532:

Can you clarify exactly what you mean please? Give an example of what
you are trying to achieve. Also tell us which version(s) of rails you
are interested in as the answer may vary.

Colin

The link that Craig gave explained the solution:
http://stackoverflow.com/questions/4516097/how-can-i-vendorize-rails-3

It was enough to add `:path => ` to Gemfile:

gem 'rails', '~>3.1.0', :path => "path/to/my/clone/of/rails"

(i actually copied the folder with my copy of rails git repository to
vendor/rails).
After that my sample application started using this copy of rails
instead of rails gem.