檢查目前正在使用的 Rails 環境版本

How to check the versions of Rails components of your developing applications are using?
如何檢查正在開發的應用程式所使用的 Rails 元件的版本?

It's is quiet easy. Open your terminal panel and enter the application folder you're developing.
這很簡單。打開的 terminal 視窗,進入正在開發的應用程式目錄。

Then enter: $ > ruby script/about . It will show all the information you need
然後輸入: $ > ruby script/about 。所要的訊息就會顯示。

The following is the case:
底下是一個實際案例:

chientai:~ chientai$ cd Sites/Rails/bt
chientai:~/Sites/Rails/bt chientai$ ruby script/about
About your application's environment
Ruby version 1.8.2 (powerpc-darwin8.0)
RubyGems version 0.9.0
Rails version 1.1.6
Active Record version 1.14.4
Action Pack version 1.12.5
Action Web Service version 1.1.6
Action Mailer version 1.2.5
Active Support version 1.3.1
Application root /Users/chientai/Sites/Rails/bt
Environment development
Database adapter mysql
Database schema version 1

0 comments on 檢查目前正在使用的 Rails 環境版本

    Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img><blockquote>
    • Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.