2011-04-28 5 views
2

레일즈 3.0.6 또는 3.0.7이 설치된 새 앱을 생성하려고하면 rails 명령을 사용하기위한 지침을 얻습니다. 어떤 이유로 레일스는 내가 틀린 문법으로 타이핑했다고 생각하는 것 같다. 3.0.5 이하에서는 모든 것이 잘 작동합니다. Ruby 1.9.2와 Ubuntu 10.04를 실행합니다.Rails 3.0.6 또는 3.0.7로 새 앱을 생성 할 수 없습니다.

rails new app

이됩니다에서 :

Usage: 
    rails new APP_PATH [options] 

Options: 
    -r, [--ruby=PATH]   # Path to the Ruby binary of your choice 
           # Default: /usr/local/bin/ruby 
    -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) 
           # Default: sqlite3 
    -b, [--builder=BUILDER]  # Path to an application builder (can be a filesystem path or URL) 
    -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) 
     [--dev]     # Setup the application with Gemfile pointing to your Rails checkout 
     [--edge]    # Setup the application with Gemfile pointing to Rails repository 
     [--skip-gemfile]  # Don't create a Gemfile 
    -O, [--skip-active-record] # Skip Active Record files 
    -T, [--skip-test-unit]  # Skip Test::Unit files 
    -J, [--skip-prototype]  # Skip Prototype files 
    -G, [--skip-git]   # Skip Git ignores and keeps 

Runtime options: 
    -f, [--force] # Overwrite files that already exist 
    -p, [--pretend] # Run but do not make any changes 
    -q, [--quiet] # Supress status output 
    -s, [--skip]  # Skip files that already exist 

Rails options: 
    -v, [--version] # Show Rails version number and quit 
    -h, [--help]  # Show this help message and quit 

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

Example: 
    rails new ~/Code/Ruby/weblog 

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog. 
    See the README in the newly created application to get going. 
+0

그들은 앱을 예약어로 만들었으며 정상적으로 실패하지는 않은 것처럼 들립니다. 레일즈는 앱 디렉토리를 생성합니다. 앱에 존재하는 디렉토리에서 앱의 이름을 지을 수있는 무언가가 추가 될 수 있습니다. "rails new config"와 같은 것을 시도해보고 실패했는지 확인하십시오. –

+0

"app"는 예. "rails new my_app"는 그만큼 실패합니다. – user544941

+0

"rails new app"가 잘 작동합니다. Rails 3.0.6, Ubuntu 11.04. – PreciousBodilyFluids

답변

3

젬를 업데이트하려고;

$ gem update --system 
+0

실제로이 문제가 해결되었습니다. 기묘한. 감사! 나를 위해 – user544941

+0

도 많이 고마워! – Mobbit

0

실행중인 것 같습니다. 적어도 rvm rubygems current은이 문제를 해결합니다. here이라는 명령을 사용하여 모든 비추천 경고를 없애고 gem update --system을 실행 한 다음 사용 중단 경고를 다시 표시합니다.

관련 문제