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 5962835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:09:42+00:00 2026-05-22T19:09:42+00:00

I’m learning ruby on rails by following the tutorials in http://ruby.railstutorial.org/ . I’m getting

  • 0

I’m learning ruby on rails by following the tutorials in http://ruby.railstutorial.org/ .

I’m getting invalid option error when I try to create a new project as below,

user1@ubuntu:~/rails_projects$ rails new sample_app -T
**invalid option: -T**

I don’t find -T option in rails man page as well.

user1@ubuntu:~/rails_projects$ rails --help new
Usage: /usr/share/rails-ruby1.8/railties/bin/rails /path/to/your/app [options]

Options:
    -r, --ruby=path                  Path to the Ruby binary of your choice (otherwise scripts use env, dispatchers current path).
                                     Default: /usr/bin/ruby1.8
    -d, --database=name              Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/ibm_db).
                                     Default: sqlite3
    -D, --with-dispatchers           Add CGI/FastCGI/mod_ruby dispatches code to generated application skeleton
                                     Default: false
        --freeze                     Freeze Rails in vendor/rails from the gems generating the skeleton
                                     Default: false
    -m, --template=path              Use an application template that lives at path (can be a filesystem path or URL).
                                     Default: (none)

Rails Info:
    -v, --version                    Show the Rails version number and quit.
    -h, --help                       Show this help message and quit.

General Options:
    -p, --pretend                    Run but do not make any changes.
    -f, --force                      Overwrite files that already exist.
    -s, --skip                       Skip files that already exist.
    -q, --quiet                      Suppress normal output.
    -t, --backtrace                  Debugging: show backtrace on errors.
    -c, --svn                        Modify files with subversion. (Note: svn must be in path)
    -g, --git                        Modify files with git. (Note: git must be in path)

Description:
    The 'rails' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.

Example:
    rails ~/Code/Ruby/weblog

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    See the README in the newly created application to get going.
user1@ubuntu:~/rails_projects$ rvm notes

any thoughts why it’s not available.

Thanks for your help.

Here is ruby & rails installation details,

user1@ubuntu:~/rails_projects$ rails -v
Rails 2.3.5
user1@ubuntu:~/rails_projects$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
user1@ubuntu:~/rails_projects$ 
  • 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-22T19:09:42+00:00Added an answer on May 22, 2026 at 7:09 pm

    Apparently you are using an old version of rails (possibly 2.x) but using the Rails 3.x syntax for creating an app. Note the example in your question:

    Example:
        rails ~/Code/Ruby/weblog
    

    So, omit the “new” and type rails sample_app. This is the command for creating apps in older versions (< 3.x) of rails.

    In the Rails 3.x, the way to create a new app is by using “new” : rails new sample_app

    You should ideally be using the latest stable rails (v 3.0.x) in which case you will also have the -T option available.

    To setup your system correctly using rvm:

    rvm install 1.8.7       #install Ruby 1.8.7
    rvm use 1.8.7 --default #always use 1.8.7 by default when you open a terminal
    ruby -v                 #should show ruby 1.8.7 .....
    gem install rails       #install the latest stable version of Rails
    rails -v                #should show Rails 3.something.something
    rails --help            #should show you the -T option now
    

    Note: Don’t type the # and the stuff after it.. it’s just there to show you what the command will do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have text I am displaying in SIlverlight that is coming from a CMS
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.