# Need help on How to apply a fix to Ramaze!

**URL:** <https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601>\
**Category:** Ruby\
**Created:** [April 15, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601 "2009-04-15T16:57:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@rubina](https://www.ruby-forum.com/u/rubina)\
**Post date:** [April 15, 2009, 4:57pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601/1 "2009-04-15T16:57:00Z")

</div>

Hello team,  
I am having a problem with Ramaze.  
I submitted a question and a helpful team member gave me the info below.  
The problem is that I don’t know how to apply the path and so I would  
like  
someones help.

# The following is the reply from a sympathetic user:

You need latest Rack from github, the commit fixing your problem is:

> <https://github.com/rack/rack/commit/723e29a005d2b878424d8abc021e1c1a1d7e865b>

=================================================================  
The above link will take you to a page with the following:  
@@ -42,7 +42,7 @@ module Rack  
res.status = status.to\_i  
headers.each { |k, vs|  
if k.downcase == “set-cookie”

- 

```
         res.cookies.concat vs.to_a

```

- 

```
        res.cookies.concat Array(vs)
       else
         vs.each { |v|
           res[k] = v

```

I really would like to try this tool, Ramaze, but I can’t continue until  
my  
problem is resolved.  
I am submitting this question here because I believe that applying the  
patch  
might be the same either for Ruby or for Ramaze.

Thank you

---

<div class="post-metadata">

**Author:** ![rubina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@rubina](https://www.ruby-forum.com/u/rubina)\
**Post date:** [April 15, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601/2 "2009-04-15T17:11:05Z")

</div>

Ruby S. wrote:

> Hello team,  
> I am having a problem with Ramaze.  
> I submitted a question and a helpful team member gave me the info below.  
> The problem is that I don’t know how to apply the path and so I would like  
> someones help.

Have you tried updating your copy of Ramaze by getting the latest  
version from GitHub?

Are you familiar with git, and GitHub?

–  
James B.

[www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff

---

<div class="post-metadata">

**Author:** ![rubina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@rubina](https://www.ruby-forum.com/u/rubina)\
**Post date:** [April 15, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601/3 "2009-04-15T17:48:05Z")

</div>

On Wed, Apr 15, 2009 at 11:10 AM, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> from GitHub?  
> [www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
> [www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff

Actually, I found on the Ramaze home page how to install the latest  
version.  
Please see below.  
But that created a bunch of other problems, which I am trying to  
resolve, as  
you can see below.  
Things do not look good at all.  
Any help will be appreciated.

Thank you

C:$user\>gem install git  
Successfully installed git-1.0.5  
1 gem installed  
Installing ri documentation for git-1.0.5…  
Updating ri class cache with 1686 classes…  
Installing RDoc documentation for git-1.0.5…  
ERROR: While executing gem … (TypeError)  
can’t convert Pathname into String

# C:$user\>gem install --source [http://gems.github.com](http://gems.github.com) manveru-ramaze

Thank you for installing Ramaze!  
You can now do create a new project:

# ramaze --create yourproject

============================================================  
Successfully installed manveru-ramaze-2009.04.08  
1 gem installed  
Installing ri documentation for manveru-ramaze-2009.04.08…  
Updating ri class cache with 1712 classes…  
Installing RDoc documentation for manveru-ramaze-2009.04.08…  
ERROR: While executing gem … (TypeError)  
can’t convert Pathname into String

C:$user\>ruby helloramaze.rb  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:20:in  
`require': no such file to load -- innate (LoadError) from C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:20:in `module:Ramaze’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:12:in  
`<top (required)>' from helloramaze.rb:2:in `require’  
from helloramaze.rb:2:in `’

C:$user\>gem install innate  
Successfully installed innate-2009.04.12  
1 gem installed  
Installing ri documentation for innate-2009.04.12…  
Updating ri class cache with 1870 classes…  
Installing RDoc documentation for innate-2009.04.12…  
ERROR: While executing gem … (TypeError)  
can’t convert Pathname into String

C:$user\>ruby helloramaze.rb  
W [2009-04-15 11:41:28 $5956] WARN | : â†[33mNo explicit root folder  
found,  
assuming it is .â†[0m  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate/dynamap.rb:11:in  
`remap’: super: no superclass method `remap’ for  
#\<Innate::URLMap:0x15404e8  
@originals={}, @mapping=[  
]\> (NoMethodError)  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate/dynamap.rb:18:in  
`map’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:84:in  
`sync’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:89:in  
`location=’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:76:in  
`initialize’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:117:in  
`new’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:117:in  
`find\_or\_create’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:72:in  
`map’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:35:in  
`block in setup’  
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `block in each’  
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `each\_key’  
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `each’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:29:in  
`setup’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in  
`block in setup\_dependencies’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in  
`each’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in  
`setup\_dependencies’  
from  
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:126:in  
`start’  
from helloramaze.rb:8:in `’

C:$user\>

---

<div class="post-metadata">

**Author:** ![rubina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@rubina](https://www.ruby-forum.com/u/rubina)\
**Post date:** [April 16, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601/4 "2009-04-16T17:02:47Z")

</div>

On Wed, Apr 15, 2009 at 5:53 PM, Bill K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > `remap': super: no superclass method `remap’ for
> 
> going to need to install a git client and update the source via git instead

I directly changed the file webrick.rb with the fix provided by Michael  
earlier and it worked.  
Thank you all for your comments and suggestions. I truly appreciate it!

---

<div class="post-metadata">

**Author:** ![rubina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e47c2d/32.png) [@rubina](https://www.ruby-forum.com/u/rubina)\
**Post date:** [April 15, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/need-help-on-how-to-apply-a-fix-to-ramaze/165601/5 "2009-04-15T23:54:51Z")

</div>

From: “Ruby S.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> `map’  
> Here’s more info on innate:

> **[GitHub - manveru/innate: The core of Ramaze](https://github.com/manveru/innate/tree/master)**
>
> master

Looking at the source (in github) for lib/innate/dynamap.rb , my guess  
is the  
above error is due to a mismatch between the versions of ‘innate’ and  
‘rack’  
that are installed on your system.

I get the impression that to keep up with manveru’s projects, you’re  
probably  
going to need to install a git client and update the source via git  
instead of  
rubygems.

Here’s a screencast showing installing git for windows:

> **[冷凍弁当の食事宅配サービス比較ランキング](https://gitcasts.com/takuhaibento-ranking)**
>
> 冷凍弁当を販売する人気食事宅配サービス7社の比較ランキングを紹介しています。カロリーや塩分などの制限食、栄養バランスの整ったヘルシー食を簡単に食べられる弁当などおすすめ宅配弁当を厳選しました。糖尿病や生活習慣病の方、高齢者、働く主婦などを中心に人気。

Alternately, I suppose you could go back to the original gems you  
installed  
and apply that one line patch manually:

> <https://github.com/rack/rack/commit/723e29a005d2b878424d8abc021e1c1a1d7e865b>

You had asked about that in an earlier post. Basically that is just a  
change  
to one line in lib/rack/handler/webrick.rb .

Regards,

Bill
