rails server command

Hi. When I try and start my server using 'rails server' I get the
following.....

Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH] # Path to the Ruby binary of your choice
                              # Default:
C:/InstantRails-2.0-win/ruby/bin/r
xe
  -d, [--database=DATABASE] # Preconfigure for selected database
(options
ql/oracle/postgresql/sqlite3/frontbase/ibm_db)
                              # Default: sqlite3
  -b, [--builder=BUILDER] # Path to an application builder (can be a
fi
tem path or URL)
  -m, [--template=TEMPLATE] # Path to an application template (can be
a f
stem path or URL)
      [--dev] # Setup the application with Gemfile
pointing
our Rails checkout
      [--edge] # Setup the application with Gemfile
pointing
ails 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.

Any idea what's going on here?

Are you running rails server in the root of your project?

I think so. I run it from rails_app/project_name

I am using instant rails. I was running ruby v 186, then I downloaded
192 and literally copy and pasted the 192 files into the ruby folder in
instantrails, overwriting what existed before hand. I'm not sure if here
lies the problem

I think so. I run it from rails_app/project_name

Do be sure that rails_app/project_name is a rails3 app.

I am using instant rails. I was running ruby v 186, then I downloaded
192 and literally copy and pasted the 192 files into the ruby folder in
instantrails, overwriting what existed before hand. I'm not sure if here
lies the problem

I don't know much about Windows, I'm afraid. I do know, however, that
RVM is a great tool for managing one's ruby projects. Sadly, RVM is
Posix only. The FAQ notes that pik is roughly equivalent.

Ah, I created a new app, specific to the new ruby version. When I try
and run the server I get an error mesasge. Please find attached

Attachments:
http://www.ruby-forum.com/attachment/5468/error.JPG

Ah, I created a new app, specific to the new ruby version. When I try
and run the server I get an error mesasge. Please find attached

Attachments:
http://www.ruby-forum.com/attachment/5468/error.JPG

Ah, I'm afraid that's a Windows specific issue. If you've access to a
Posix machine you might have an easier time. Otherwise, good luck!

Hi, I'd like to bump this thread if this is ok? My main objective is for
people to take a look at this error message I get when running 'rails
server'

Attachments:
http://www.ruby-forum.com/attachment/5472/error.JPG

The punchline is your version of sqlite3.dll is not the same version
that the sqlite3 gem on your system was compiled against. You'll have to
look at the homepage for the Sqlite3 gem to determine the proper version
of Sqlite3 dll to download.

That said, I saw on an earlier post that you are using Instant Rails. I
strongly advise against it. Instant Rails is years out of date and has
long since ceased to be supported. Instead I'd recommend downloading
1.9.2 from http://rubyinstaller.org/ and installing Rails 3 the normal
way (gem install rails). This will give you a setup that is known to
work, and as a bonus, IIRC the sqlite3 gem compiled for that version of
Ruby includes the correct dll in it's distribution. Ruby Installer
also provides an addon called DevKit
(http://rubyinstaller.org/add-ons/devkit/) which will make it much
easier to install C based addons that would be a nightmare in Instant Rails.

Hi, I'd like to bump this thread if this is ok? My main objective is for
people to take a look at this error message I get when running 'rails
server'

Have you googled your error message? I found more than a few
references that professed to have solutions, depending on your
specific version of Windows.

Attachments:
http://www.ruby-forum.com/attachment/5472/error.JPG

The message is a short one; you will get rather more help by transcribing.

Hello,

your first problem occurs when your not in your app's folder, or if
your ruby or rails version isn't well. The second one is different:
it's about sqlite3.

Please write in cmd:
'ruby -v' should be 1.9
'rails -v' should be 3.+
'gem -v' should be 1.3.7
'gem list' - here you should see sqlite3 on the list - if you want to
use sqlite3, if not, then change it in the database.yaml file.

I highliy recommend you this tutorial:
http://guides.rubyonrails.org/
prefereably then instant Rails.

Good luck,
Zoltán