开发者

Novice learning RoR: Trying to run Rails server but getting odd output in terminal

I'm trying to run Rails Server in Ubuntu 10.10 terminal. But I get an output completely different from that shown in my tutorial:

Usage:
rails new APP_PATH [options]

Options:
-r, [--ruby=PATH]           # Path to the Ruby binary of your choice
                          # Default: /home/rinki/.rvm/rubies/ruby-1.9.2-p180/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 th开发者_JAVA技巧at 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.

Any help/suggestions would be much appreciated.

Thanks!


Have you created a project in the directory first? It looks like you haven't. Once you setup a project with rails new you will be able to run the rails server for the site.


If you want to run rails server type in your console "rails server", and if you want create a new project type in your console "rails new project_name"


What version of Rails are you running?

In your terminal type 'rails -v'. If you do not have version 3 then the 'rails new app_name' syntax will not work for this was changed in Rails 3.

Try updating Rails and trying again: 'gem update rails'.


This is the best documentation you can get for ubuntu on Rails. It will help you set up everything pretty easily :

https://help.ubuntu.com/community/RubyOnRails

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜