On init webrick get older rails version (suddenly)

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)

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

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

Thanks in advance

On 8 September 2010 12:49, Twistter S. [email protected] wrote:

This steps:
=> Rails 2.3.0 application starting on 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

Colin L. wrote:

On 8 September 2010 12:49, Twistter S. [email protected] wrote:

This steps:
=> Rails 2.3.0 application starting on 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…

Colin L. wrote:

On 8 September 2010 15:19, Twistter S. [email protected] 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

Colin

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

Thanks Colin

On 8 September 2010 15:19, Twistter S. [email protected] 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:

Colin