In general, the question I have is the question in the title:
How do I find out which rails version an existing rails application is built on?
More specifically for my purposes, I would like to know how to find out in the case when there is no gemfile (I’m relatively new to rails and used to seeing the rails version in the gemfile with all the rails 3 apps, but am not sure for older versions.)
rake gemswill print out what gems, dependencies, and versions are installed, frozen, etc.If you are using bundler than you can use
bundle showto list all the gems that your app is using.