“Error in ruby relative_path_from call on windows”

rails, Uncategorized

I was playing around with “SPREE COMMERCE”after a long term on my windows machine , before this have always used my linux box for Spree commerce .

However got stuck at the very first step after bootstrapping a fresh application .

Error :


After scratching head for long and loosing 20 hairs atleast drilled down to source of error and monkey patched the error .

Moreover after a little digging, it was evident that the ‘relative_path_from’ method in ‘/ruby/lib/ruby/1.8/pathname.rb’ file had the problem. The problem was also described as a ticket athttp://redmine.ruby-lang.org/issues/show/1366 and the excerpt of the issue is shown below:

Monkey Patch :


I added the capitalize! keyword at the end of the two lines so that both the paths are in uppercase, so that later in the code ( ) shown below does not barf and give us the error we got shown in the first error of the post.

Overriding original :



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s