Witam wszystkich serdecznie
Przychodzę do was z małym problemem, z którym męczę się od wczoraj. Mianowicie chcę napisać aplikację gdzie wyświetli się tekst Hello World tak jak jest to opisane tutaj: http://edgeguides.rubyonrails.org/getting_started.html (3.2 Creating the Blog Application). Ale nic mi nie wychodzi - tworzę nowy projekt, generuję controller home i views index edytuję router.rb jak jest opisane, a gdy odpalam swój projekt wyskakuje mi kilka błędów (korzystam z NetBeans):
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant Blog (NameError)
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing'
from C:/Documents and Settings/Krzysiek/Moje dokumenty/NetBeansProjects/blog/config/routes.rb:1
from C:/Documents and Settings/Krzysiek/Moje dokumenty/NetBeansProjects/blog/config/routes.rb:145:in `load'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:287:in `load_routes!'
... 13 levels...
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:31:in `require'
from C:/Program Files/NetBeans 6.9.1/ruby/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script\server:3
Myślę, że coś nie tak w pliku routes.rb a on wygląda tak:
Blog::Application.routes.draw do
root :to =>"home#index"
end