How to use a local copy of rails in a rails 3 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.

On Nov 30, 2011, at 4:47 PM, Alexey M. wrote:

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.


http://stackoverflow.com/questions/4516097/how-can-i-vendorize-rails-3

Craig

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

On 30 November 2011 23:47, Alexey M. [email protected] wrote:

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.

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 L. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs