Ruby on Rails
Tuesday, June 24, 2014
Look at what the error is telling you:
Generally, the exception is "NoMethodError" means that the interpreter was not able to find a method (in this case "configure") in a specific file (in this case "development.rb". It even tells you the line, which is after the colon "1").
C:/Sites/rails_projects/first_app/config/environments/development.rb:1:in `<top
(required)>': undefined method `configure' for #<FirstApp::Application:0x273df20
> (NoMethodError)
Can you provide the contents of the development.rb file and of any other file that you perhaps are "requiring" inside of it ?
2014-06-24 16:13 GMT-03:00 Will Acheson <willyach07@gmail.com>:
Hello everyone,--I am a total beginner to ruby and rails, but am really excited about learning the environment. I have to say, however, starting up with RoR is certainly most difficult!I am following along the Ruby on Rails tutorial found at railstutorial.org and I have gotten stuck at step 1.2.5. I am running on a windows 8 environment using cmd.exe and sublime text 2 for text editing. I have updated my gemfile in my first_app project to exactly as it says to do in the railstutorial and have ran 'bundle update' & 'bundle install' and that seems to be correct, to me.My gemfile looks like:Which is exactly as it appears in the gemfile editing step of 1.5 in the railstutorial...source 'https://rubygems.org'ruby '1.9.3'#ruby-gemset=railstutorial_rails_4_0gem 'rails', '4.0.5'group :development dogem 'sqlite3', '1.3.8'endgem 'sass-rails', '4.0.1'gem 'uglifier', '2.1.1'gem 'coffee-rails', '4.0.1'gem 'jquery-rails', '3.0.4'gem 'turbolinks', '1.1.1'gem 'jbuilder', '1.0.2'group :doc dogem 'sdoc', '0.3.20', require: falseendWith my gemfile in order and bundled, I type the command 'rails server' and my console spits out a bunch of extra code which is not listed in the tutorial.Tutorial says my output should look like:$ rails server
=> Booting WEBrick
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
But my console outputs much more than that...C:\Sites\rails_projects\first_app>rails server=> Booting WEBrick=> Rails 4.0.5 application starting in development on http://0.0.0.0:3000=> Run `rails server -h` for more startup options=> Ctrl-C to shutdown serverExitingC:/Sites/rails_projects/first_app/config/environments/development.rb:1:in `<top(required)>': undefined method `configure' for #<FirstApp::Application:0x273df20> (NoMethodError)from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `block in require'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in `load_dependency'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in `require'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/engine.rb:590:in `each'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/engine.rb:590:in `block in <class:Engine>'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:30:in `instance_exec'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:30:in `run'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:55:in `block in run_initializers'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:44:in `each'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:44:in `tsort_each_child'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/initializable.rb:54:in `run_initializers'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/application.rb:215:in `initialize!'from C:/Sites/rails_projects/first_app/config/environment.rb:5:in `<top(required)>'from C:/Sites/rails_projects/first_app/config.ru:3:in `require'from C:/Sites/rails_projects/first_app/config.ru:3:in `block in <main>'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'from C:/Sites/rails_projects/first_app/config.ru:in `new'from C:/Sites/rails_projects/first_app/config.ru:in `<main>'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/commands/server.rb:48:in `app'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/commands/server.rb:75:in `start'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/commands.rb:76:in `block in <top (required)>'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/commands.rb:71:in `tap'from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.5/lib/rails/commands.rb:71:in `<top (required)>'from bin/rails:4:in `require'from bin/rails:4:in `<main>'
So after this I attempt to point my browser to the localhost server which I have supposedly created @ http://0.0.0.0:3000
At this point, I get the "webpage is not available" / "oops! Google chrome cannot connect to localhost:3000" error page...Is there some readily aparant thing I am doing wrong here? I installed ruby using the Rails Installer for windows utility, if that makes any difference. I have Java installed, which the author of railstutorial mentions may be an issue in respect to javascript...Can anyone help me?Best regards,Will
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9ebada97-ce94-4202-900c-c36a8ab9b3d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Att, Antônio Augusto de Sousa Britto - 43ª turma de Ciência da Computação - UFU
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAK6FffLLdcqjSonvWcGTRckCMV9UzJ%3DenMEuwJ2PpxEA%3DxpQrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment