Ruby Forum Rails Engines > How do I determine the used rails version from within Ruby?

Posted by Sebastian Winkler (Guest)
on 19.04.2007 14:42
How do I determine the used rails version from within Ruby?
Posted by Eamon Walshe (eamon)
on 26.10.2007 23:48
Sebastian Winkler wrote:
> How do I determine the used rails version from within Ruby?


I was asking the same question off google when I found your post. So I 
searched through vendor/rails for 'VERSION' and found 
Rails::VERSION::STRING.

$ script/console
Loading development environment.
>> Rails::VERSION::STRING
=> "1.2.0"
>> exit