# RoR free hosting

**URL:** <https://www.ruby-forum.com/t/ror-free-hosting/100950>\
**Category:** Ruby\
**Created:** [August 2, 2006, 2:17am UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950 "2006-08-02T02:17:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 2, 2006, 2:17am UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950/1 "2006-08-02T02:17:05Z")

</div>

Does anyone know of a good hosting company that is offering free ruby  
on rails hosting? I have a 1and1 account, but as of yet they do not  
support rails. Thanks.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 2, 2006, 2:23am UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950/2 "2006-08-02T02:23:14Z")

</div>

On 8/2/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Does anyone know of a good hosting company that is offering free ruby  
> on rails hosting? I have a 1and1 account, but as of yet they do not  
> support rails. Thanks.

A quick Google sent me to [http://www.freeonrails.com](http://www.freeonrails.com). Anyway, try  
posting to the Rails mailing list.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 3, 2006, 12:38pm UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950/3 "2006-08-03T12:38:57Z")

</div>

> **[The Best Web Hosting Services at 20x Speeds | A2 Hosting](https://www.a2hosting.com/)**
>
> If you are looking for fast and reliable web hosting, A2 Hosting is the company for you. We provide up to 20x the speed of competitors with a 99.9% uptime!

i have about 8 sites there. they keep very current on versions of php,  
mysql, rails, etc.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 4, 2006, 7:39pm UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950/4 "2006-08-04T19:39:50Z")

</div>

Hello. I am hitting a nasty error where the Ruby interpreter is only  
expecting one argument for a particular method call, but it is actually  
declared to have three arguments. The error is happening when trying to  
invoke this method…

def dispatch(cgi = nil, session\_options =  
ActionController::CgiRequest::DEFAULT\_SESSION\_OPTIONS, output = $stdout)  
…  
end

Below are the two error messages when using two different web servers to  
try to invoke the request:

#\<ArgumentError: wrong number of arguments (3 for 1)\>  
[“C:/sdks/ruby/1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick\_server.rb:115:in  
`dispatch’”,

…and…

Error calling Dispatcher.dispatch #\<ArgumentError: wrong number of  
arguments (3 for 1)\>  
C:/sdks/ruby/1.8.4/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in  
`dispatch’

The real pain comes in when looking at the source for both cases,  
webrick\_server.rb:115 and mongrel/rails.rb:73 and noticing that the  
calls _do_ have three arguments, and the method definition is expecting  
three arguments.

Any idea why the interpreter would only think one argument required for  
this method?

thanks,

~harris

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 4, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/ror-free-hosting/100950/5 "2006-08-04T21:43:07Z")

</div>

Harris R. wrote:

> …and…
> 
> Error calling Dispatcher.dispatch #\<ArgumentError: wrong number of arguments (3 for 1)\>  
> C:/sdks/ruby/1.8.4/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in `dispatch’
> 
> The real pain comes in when looking at the source for both cases, webrick\_server.rb:115 and mongrel/rails.rb:73 and noticing that the calls _do_ have three arguments, and the method definition is expecting three arguments.
> 
> Any idea why the interpreter would only think one argument required for this method?

I’d double check that the method that is invoked is actually the one you  
think. Maybe there is a dynamic method redefinition or some other  
method shadows the method you think is called.

Did you try to check the method? You can do something like this:

irb(main):001:0\> s=“s”  
=\> “s”  
irb(main):002:0\> m = s.method :gsub  
=\> #\<Method: String#gsub\>  
irb(main):003:0\> p m; p m.arity  
#\<Method: String#gsub\>  
-1  
=\> nil

With that you see where the method is defined and the # of args.

HTH

```
robert
```
