Note that there are some explanatory texts on larger screens.

plurals
  1. PONo -T option in rails new <app_name> command
    text
    copied!<p>I'm learning ruby on rails by following the tutorials in <a href="http://ruby.railstutorial.org/" rel="nofollow">http://ruby.railstutorial.org/</a> .</p> <p>I'm getting invalid option error when I try to create a new project as below,</p> <pre><code>user1@ubuntu:~/rails_projects$ rails new sample_app -T **invalid option: -T** </code></pre> <p>I don't find -T option in rails man page as well.</p> <pre><code>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 </code></pre> <p>any thoughts why it's not available.</p> <p>Thanks for your help.</p> <p>Here is ruby &amp; rails installation details,</p> <pre><code>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$ </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload