Forum: Ruby on Rails Can't access http://local:3000/projectName/

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
80fa6dadfaeddd631995b31b66a41b8e?d=identicon&s=25 Weston Campbell (ruby-panda)
on 2009-05-17 14:20
(Received via mailing list)
Hey, I'm new to RoR and have been having trouble viewing/testing my
project.
I'm working on Windows Vista.

After running the: "ruby script/server" command and navigating through
Firefox to http://local:3000/projectName/ the cmd-prompt spits out a
big error message.

Here's a snippet of the error (If you need the whole thing, tell me.):

=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/!\ FAILSAFE /!\  Sat May 16 17:27:15 -0700 2009
  Status: 500 Internal Server Error
  no such file to load -- sqlite3
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/requires.rb:7:in
`require_library_or_gem'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/requires.rb:5:in
`require_library_or_gem'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/sqlite3_adapter.rb:10:in
`sqlite3_connection'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:223:in
`send'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:245:in
`checkout_new_connection'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:188:in
`checkout'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:184:in
`loop'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:184:in
`checkout'
    C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/connection_pool.rb:183:in
`checkout'

...

Any help would be really appreciated! ~Redpanda
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-05-17 14:51
(Received via mailing list)
On May 17, 4:31 am, Redpanda <silvershockw...@gmail.com> wrote:
> Hey, I'm new to RoR and have been having trouble viewing/testing my
> project.
> I'm working on Windows Vista.
>

By default rails uses sqlite3 for its database layer. You need both
sqlite3 itself and the sqlite3-ruby gem (ruby bindings for sqlite).
Last time I checked you had to ask gem for version 1.2.3 of the
sqlite3-ruby gem (later versions don't have a prebuilt windows
version)

Fred
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-05-17 15:10
(Received via mailing list)
Also, assuming you have run ruby script/server from the projectName
directory then the url will be http://localhost:3000/ the projectname is
not
required.  At least I do not need it.

Colin

2009/5/17 Frederick Cheung <frederick.cheung@gmail.com>
80fa6dadfaeddd631995b31b66a41b8e?d=identicon&s=25 Weston Campbell (ruby-panda)
on 2009-05-26 19:35
(Received via mailing list)
Thanks for the help.I figured that out the day after I posted this and
forgot to update my post.
But this should be good for anyone else having the same issue.

~Redpanda

On May 17, 5:50 am, Frederick Cheung <frederick.che...@gmail.com>
This topic is locked and can not be replied to.