Finding Rails version from Rails Console

To find a Rails version in Rails console is also so easy. Once I think about finding the version of Rails and at that time I am working on Rails console, just assuming I typed

ruby-1.9.2-p290 :024 > Rails.version
 => "3.1.3"    

and returns like this. I wonder about Rails Console!!! You see how they made this!!

Unknown's avatar

Author: Abhilash

Hi, Iโ€™m Abhilash! A seasoned web developer with 15 years of experience specializing in Ruby and Ruby on Rails. Since 2010, Iโ€™ve built scalable, robust web applications and worked with frameworks like Angular, Sinatra, Laravel, Node.js, Vue and React. Passionate about clean, maintainable code and continuous learning, I share insights, tutorials, and experiences here. Letโ€™s explore the ever-evolving world of web development together!

Leave a comment