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

Posted by Sebastian Winkler (Guest)
on 2007-04-19 14:42
How do I determine the used rails version from within Ruby?
Posted by Eamon Walshe (eamon)
on 2007-10-26 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.