# On init webrick get older rails version (suddenly)

**URL:** <https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644>\
**Category:** Rails\
**Created:** [September 8, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644 "2010-09-08T13:49:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eserralv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eserralv](https://www.ruby-forum.com/u/eserralv)\
**Post date:** [September 8, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644/1 "2010-09-08T13:49:13Z")

</div>

Hi!

I’m running rails 2.3.8, confirmed by the prompt (rails -v)

I’m doing a project and on other occasions I have needed  
install nested forms.

I followed the steps  
([Ruby on Rails — Nested Model Forms](http://weblog.rubyonrails.org/2009/1/26/nested-model-forms))

This steps:  
$ git clone git://github.com/alloy/rails.git  
$ cd rails  
$ git checkout origin/normalized\_nested\_attributes  
$ cd …/…  
$ ruby vendor/rails/railties/bin/rails .

And when i restarted webrick, this load rails 2.3.0 (that i didn’t  
install).

=\> Booting WEBrick  
=\> Rails 2.3.0 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)

Anyone know what relationship there is or how to fix this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![eserralv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eserralv](https://www.ruby-forum.com/u/eserralv)\
**Post date:** [September 8, 2010, 2:35pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644/2 "2010-09-08T14:35:35Z")

</div>

On 8 September 2010 12:49, Twistter S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This steps:  
> =\> Rails 2.3.0 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
> If you look in vendor/rails I think you will find that those  
> instructions have installed a patched version of rails there  
> (presumably 2.3.0).

Colin

---

<div class="post-metadata">

**Author:** ![eserralv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eserralv](https://www.ruby-forum.com/u/eserralv)\
**Post date:** [September 8, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644/3 "2010-09-08T16:19:59Z")

</div>

Colin L. wrote:

> On 8 September 2010 12:49, Twistter S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > This steps:  
> > =\> Rails 2.3.0 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
> > If you look in vendor/rails I think you will find that those  
> > instructions have installed a patched version of rails there  
> > (presumably 2.3.0).
> 
> Colin

Thanks Colin

Yes, this is the problem.  
In vendor/rails/railties/lib/rails/version.rb i have this:

module Rails  
module VERSION #:nodoc:  
MAJOR = 2  
MINOR = 3  
TINY = 0

```
STRING = [MAJOR, MINOR, TINY].join('.')

```

end  
end

If the binaries belongs to version 2.3.0 should i replaced then for the  
binaries of 2.3.8.

Don’t feel that this is the correct…

---

<div class="post-metadata">

**Author:** ![eserralv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eserralv](https://www.ruby-forum.com/u/eserralv)\
**Post date:** [September 8, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644/4 "2010-09-08T17:10:07Z")

</div>

Colin L. wrote:

> On 8 September 2010 15:19, Twistter S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Thanks Colin  
> > ï¿½ ï¿½STRING = [MAJOR, MINOR, TINY].join(‘.’)  
> > ï¿½end  
> > end
> > 
> > If the binaries belongs to version 2.3.0 should i replaced then for the  
> > binaries of 2.3.8.
> > 
> > Don’t feel that this is the correct…
> 
> I doubt if that would work. I suggest finding a better way rather  
> than using this patch.
> 
> This might be helpful:  
> [#196 Nested Model Form Part 1 - RailsCasts](http://railscasts.com/episodes/196-nested-model-form-part-1)
> 
> Colin

Yes, i found this and think that is the better choice

Thanks Colin

---

<div class="post-metadata">

**Author:** ![eserralv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b3f665/32.png) [@eserralv](https://www.ruby-forum.com/u/eserralv)\
**Post date:** [September 8, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/on-init-webrick-get-older-rails-version-suddenly/194644/5 "2010-09-08T16:52:36Z")

</div>

On 8 September 2010 15:19, Twistter S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks Colin  
> STRING = [MAJOR, MINOR, TINY].join(‘.’)  
> end  
> end
> 
> If the binaries belongs to version 2.3.0 should i replaced then for the  
> binaries of 2.3.8.
> 
> Don’t feel that this is the correct…

I doubt if that would work. I suggest finding a better way rather  
than using this patch.

This might be helpful:

> **[\#196 Nested Model Form Part 1 - RailsCasts](http://railscasts.com/episodes/196-nested-model-form-part-1)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

Colin
