Unable to start server

When i start the server “rails s”,following error message appears:

=> Booting WEBrick
=> Rails 3.0.7 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:167:in
default_controller_and_action': missing :controller (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:72:innormalize_options!’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:55:in
initialize' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:272:innew’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:272:in
match' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:1173:inmatch’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:1360:in
match' from /home/amrit/check/config/routes.rb:8 from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:ininstance_exec’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:in
draw' from /home/amrit/check/config/routes.rb:1 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:inload’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in
load' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:inload_dependency’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in
new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:inload_dependency’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in
load' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:inreload_routes!’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:in
each' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:inreload_routes!’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:120
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:in
call' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:inexecute_if_updated’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:51
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:52:in
call' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:52 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:25:ininstance_exec’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:25:in
run' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:50:inrun_initializers’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:49:in
each' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:49:inrun_initializers’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:134:in
initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:insend’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:in
method_missing' from /home/amrit/check/config/environment.rb:5 from /home/amrit/check/config.ru:3:inrequire’
from /home/amrit/check/config.ru:3
from /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in
instance_eval' from /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:ininitialize’
from /home/amrit/check/config.ru:1:in `new’
from /home/amrit/check/config.ru:1
[email protected]:~/check$ cd
[email protected]:~$ cd demo
[email protected]:~/demo$ rails s
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-05-27 01:43:28] INFO WEBrick 1.3.1
[2011-05-27 01:43:28] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-05-27 01:43:33] INFO WEBrick::HTTPServer#start: pid=2101
port=3000

Started GET “/posts” for 127.0.0.1 at Fri May 27 01:43:39 -0400 2011
Processing by PostsController#index as HTML
Post Load (74.2ms) SELECT posts.* FROM posts
Rendered posts/index.html.erb within layouts/application (25.9ms)
Completed 200 OK in 177ms (Views: 52.6ms | ActiveRecord: 74.2ms)
^Z
[1]+ Stopped rails s
[email protected]:~/demo$ clear

[email protected]:~/demo$ cd
[email protected]:~$ cd checkk
bash: cd: checkk: No such file or directory
[email protected]:~$ cd check
[email protected]:~/check$ rails s
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:167:in
default_controller_and_action': missing :controller (ArgumentError) from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:72:innormalize_options!’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:55:in
initialize' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:272:innew’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:272:in
match' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:1173:inmatch’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:1360:in
match' from /home/amrit/check/config/routes.rb:8 from /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:ininstance_exec’
from
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:233:in
draw' from /home/amrit/check/config/routes.rb:1 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:inload’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in
load' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:inload_dependency’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in
new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:inload_dependency’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in
load' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:inreload_routes!’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:in
each' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:inreload_routes!’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:120
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:in
call' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/file_update_checker.rb:32:inexecute_if_updated’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:51
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:52:in
call' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb:52 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:25:ininstance_exec’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:25:in
run' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:50:inrun_initializers’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:49:in
each' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:49:inrun_initializers’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:134:in
initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:insend’
from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:77:in
method_missing' from /home/amrit/check/config/environment.rb:5 from /home/amrit/check/config.ru:3:inrequire’
from /home/amrit/check/config.ru:3
from /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in
instance_eval' from /usr/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:ininitialize’
from /home/amrit/check/config.ru:1:in `new’
from /home/amrit/check/config.ru:1

John

Sent from my iPhone

On May 27, 2011, at 12:56 AM, John [email protected] wrote:

When i start the server “rails s”,following error message appears:

=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting

/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:167:in
`default_controller_and_action’: missing :controller (ArgumentError)

from

You’re missing your default controller. Have you deleted controllers
from this app?

Your check folder does not have a complete rails app in it where as your
demo folder does.

B.

On Fri, May 27, 2011 at 2:13 AM, Bryan C.
[email protected]wrote:

=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting

/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/routing/mapper.rb:167:in

`default_controller_and_action’: missing :controller (ArgumentError)
from

You’re missing your default controller. Have you deleted controllers from
this app?

    No

[2011-05-27 01:43:28] INFO ruby 1.8.7 (2010-01-10) [i486-linux]
[2011-05-27 01:43:33] INFO WEBrick::HTTPServer#start: pid=2101 port=3000

Your check folder does not have a complete rails app in it where as your
demo folder does.

  But i didn't delete anything from check folder.Still how to 

resolve
it?

John

On Fri, May 27, 2011 at 4:03 AM, John [email protected] wrote:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs