Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6219239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:44:41+00:00 2026-05-24T07:44:41+00:00

My setup: Rails 3.0.9, Ruby 1.9.2 I want to check the gem version for

  • 0

My setup: Rails 3.0.9, Ruby 1.9.2

I want to check the gem version for my app through the Rails console. In my gemfile, I have

gem 'rack', '1.2.3'

Ran bundle install after. In the Rails console,

>> Rack.version
=> "1.1"

Any idea why?

UPDATE

Gemfile.lock

GEM
  remote: http://rubygems.org/
  specs:
    actionpack (3.0.9)
      ...
      rack (~> 1.2.1)
      ...

    rack (1.2.3)

    rack-mount (0.6.14)
      rack (>= 1.0.0)

    warden (1.0.4)
      rack (>= 1.0)

DEPENDENCIES
...  
rack (= 1.2.3)
...

There are several rack versions listed in gemfile.lock.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:44:43+00:00Added an answer on May 24, 2026 at 7:44 am
    Rack.version
    

    will return the protocol version,

    Rack.release
    

    is probably what you are you looking for.

    https://github.com/rack/rack/blob/master/lib/rack.rb#L14

    Otherwise:

    Gem.loaded_specs["rack"]
    

    Example:

    Gem.loaded_specs["rack"]
    # => #<Gem::Specification name=rack version=1.3.2> 
    Gem.loaded_specs["rack"].version
    # => #<Gem::Version "1.3.2"> 
    Gem.loaded_specs["rack"].version.to_s
    # => "1.3.2"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple model setup in my Ruby on Rails app. (User {name,
I want to setup a rails app on heroku that is part of a
I have a Ruby on Rails app that I'm working on and I'm having
My setup: Rails 2.3.10, Ruby 1.8.7 This is a simple question but I want
I've got an existing production Ruby/Rails app that I want to migrate to MongoDB
Background: So I have roughly (Ruby on Rails app) class A def calculate_input_datetimes #
I'm trying to get Ruby on Rails setup on my new eeeubuntu install and
I've been trying to get setup with Ruby on Rails today, but I think
I've set up a new Rails 2.3.2 app and added the Basecamp API ruby
I am struggling with the route setup for a Rails application. I have installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.