Hi, have tried to boot the web server but keep on getting this error message. Can you help me figure out what it means? TIA rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/ active_support/dependencies.rb:235:in `load'': /Users/pdenlinger/Sites/ rails_projects/demo_app/config/routes.rb:7: syntax error, unexpected ''.'' (SyntaxError) /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:13: syntax error, unexpected keyword_do_block, expecting keyword_end /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:17: syntax error, unexpected ''.'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `block in load'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:127:in `block in reload_routes!'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:127:in `each'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:127:in `reload_routes!'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:120:in `block in routes_reloader'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in `call'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/railtie.rb:14:in `block (2 levels) in <class:Railtie>'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ activesupport-3.0.0/lib/active_support/callbacks.rb:419:in `_run_prepare_callbacks'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:33:in `new'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:33:in `build'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:79:in `block in build'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:79:in `each'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:79:in `inject'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ lib/action_dispatch/middleware/stack.rb:79:in `build'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:162:in `app'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application/finisher.rb:35:in `block in <module:Finisher>'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/initializable.rb:25:in `instance_exec'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/initializable.rb:25:in `run'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/initializable.rb:50:in `block in run_initializers'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/initializable.rb:49:in `each'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/initializable.rb:49:in `run_initializers'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:134:in `initialize!'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/application.rb:77:in `method_missing'' from /Users/pdenlinger/Sites/rails_projects/demo_app/config/ environment.rb:5:in `<top (required)>'' from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in `require'' from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in `block in <main>'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/builder.rb:46:in `instance_eval'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/builder.rb:46:in `initialize'' from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in `new'' from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in `<main>'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/builder.rb:35:in `eval'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/builder.rb:35:in `parse_file'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/server.rb:162:in `app'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/server.rb:248:in `wrapped_app'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ rack/server.rb:213:in `start'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/commands/server.rb:65:in `start'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/commands.rb:30:in `block in <top (required)>'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/commands.rb:27:in `tap'' from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ lib/rails/commands.rb:27:in `<top (required)>'' from script/rails:6:in `require'' from script/rails:6:in `<main>'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
murali dhararao
2010-Sep-02 11:07 UTC
Re: Rails 3 web server quits with error message on booting
Issue with the rutes.rb fiule unexpected ''.'' (SyntaxError) check the lines of 7 You can fix the issue. On Thu, Sep 2, 2010 at 4:27 PM, pauld <paul.denlinger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, have tried to boot the web server but keep on getting this error > message. Can you help me figure out what it means? TIA > > > rails server > => Booting WEBrick > => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > Exiting > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/ > active_support/dependencies.rb:235:in `load'': /Users/pdenlinger/Sites/ > rails_projects/demo_app/config/routes.rb:7: syntax error, unexpected > ''.'' (SyntaxError) > /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:13: > syntax error, unexpected keyword_do_block, expecting keyword_end > /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:17: > syntax error, unexpected ''.'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `block > in load'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block > in load_dependency'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/dependencies.rb:591:in > `new_constants_in'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/dependencies.rb:225:in > `load_dependency'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:127:in `block in reload_routes!'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:127:in `each'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:127:in `reload_routes!'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:120:in `block in routes_reloader'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in > `call'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in > `execute_if_updated'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/railtie.rb:14:in `block (2 levels) in > <class:Railtie>'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > activesupport-3.0.0/lib/active_support/callbacks.rb:419:in > `_run_prepare_callbacks'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:33:in `new'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:33:in `build'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:79:in `block in build'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:79:in `each'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:79:in `inject'' > from > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > lib/action_dispatch/middleware/stack.rb:79:in `build'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:162:in `app'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application/finisher.rb:35:in `block in <module:Finisher>'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/initializable.rb:25:in `instance_exec'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/initializable.rb:25:in `run'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/initializable.rb:50:in `block in run_initializers'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/initializable.rb:49:in `each'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/initializable.rb:49:in `run_initializers'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:134:in `initialize!'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/application.rb:77:in `method_missing'' > from /Users/pdenlinger/Sites/rails_projects/demo_app/config/ > environment.rb:5:in `<top (required)>'' > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in > `require'' > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in > `block in <main>'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/builder.rb:46:in `instance_eval'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/builder.rb:46:in `initialize'' > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in > `new'' > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in > `<main>'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/builder.rb:35:in `eval'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/builder.rb:35:in `parse_file'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/server.rb:162:in `app'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/server.rb:248:in `wrapped_app'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > rack/server.rb:213:in `start'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/commands/server.rb:65:in `start'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/commands.rb:30:in `block in <top (required)>'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/commands.rb:27:in `tap'' > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > lib/rails/commands.rb:27:in `<top (required)>'' > from script/rails:6:in `require'' > from script/rails:6:in `<main>'' > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks & Regards, MuraliDharaRao.T +91-9642234646 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
There is only a "." on line 7. How would that trigger a syntax error? Thanks and regards, Paul On Sep 2, 7:07 pm, murali dhararao <sumud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Issue with the rutes.rb fiule > unexpected > ''.'' (SyntaxError) > > check the lines of 7 You can fix the issue. > > > > > > On Thu, Sep 2, 2010 at 4:27 PM, pauld <paul.denlin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, have tried to boot the web server but keep on getting this error > > message. Can you help me figure out what it means? TIA > > > rails server > > => Booting WEBrick > > => Rails 3.0.0 application starting in development onhttp://0.0.0.0:3000 > > => Call with -d to detach > > => Ctrl-C to shutdown server > > Exiting > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/ > > active_support/dependencies.rb:235:in `load'': /Users/pdenlinger/Sites/ > > rails_projects/demo_app/config/routes.rb:7: syntax error, unexpected > > ''.'' (SyntaxError) > > /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:13: > > syntax error, unexpected keyword_do_block, expecting keyword_end > > /Users/pdenlinger/Sites/rails_projects/demo_app/config/routes.rb:17: > > syntax error, unexpected ''.'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `block > > in load'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block > > in load_dependency'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/dependencies.rb:591:in > > `new_constants_in'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/dependencies.rb:225:in > > `load_dependency'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/dependencies.rb:235:in `load'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:127:in `block in reload_routes!'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:127:in `each'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:127:in `reload_routes!'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:120:in `block in routes_reloader'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in > > `call'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/file_update_checker.rb:32:in > > `execute_if_updated'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/railtie.rb:14:in `block (2 levels) in > > <class:Railtie>'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/ > > activesupport-3.0.0/lib/active_support/callbacks.rb:419:in > > `_run_prepare_callbacks'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:33:in `new'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:33:in `build'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:79:in `block in build'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:79:in `each'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:79:in `inject'' > > from > > /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/ > > lib/action_dispatch/middleware/stack.rb:79:in `build'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:162:in `app'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application/finisher.rb:35:in `block in <module:Finisher>'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/initializable.rb:25:in `instance_exec'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/initializable.rb:25:in `run'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/initializable.rb:50:in `block in run_initializers'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/initializable.rb:49:in `each'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/initializable.rb:49:in `run_initializers'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:134:in `initialize!'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/application.rb:77:in `method_missing'' > > from /Users/pdenlinger/Sites/rails_projects/demo_app/config/ > > environment.rb:5:in `<top (required)>'' > > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in > > `require'' > > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:3:in > > `block in <main>'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/builder.rb:46:in `instance_eval'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/builder.rb:46:in `initialize'' > > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in > > `new'' > > from /Users/pdenlinger/Sites/rails_projects/demo_app/config.ru:1:in > > `<main>'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/builder.rb:35:in `eval'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/builder.rb:35:in `parse_file'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/server.rb:162:in `app'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/server.rb:248:in `wrapped_app'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/ > > rack/server.rb:213:in `start'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/commands/server.rb:65:in `start'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/commands.rb:30:in `block in <top (required)>'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/commands.rb:27:in `tap'' > > from /Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/ > > lib/rails/commands.rb:27:in `<top (required)>'' > > from script/rails:6:in `require'' > > from script/rails:6:in `<main>'' > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > Thanks & Regards, > MuraliDharaRao.T > +91-9642234646-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Daniel Bye
2010-Sep-02 11:27 UTC
Re: Re: Rails 3 web server quits with error message on booting
On Thu, Sep 02, 2010 at 04:18:54AM -0700, pauld wrote:> There is only a "." on line 7. How would that trigger a syntax error?Because a ''.'' on a line on its own is not a valid Ruby expression... Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \
Daniel, In that case, isn''t the code on Listing 2.2, 2.3, 2.4 wrong here at http://railstutorial.org/chapters/a-demo-app#top Shouldn''t that have the normal methods in there instead? Thanks, Paul On Sep 2, 7:27 pm, Daniel Bye <ra...-tSCSLn4GjLmr5jXINAnWskB+6BGkLq7r@public.gmane.org> wrote:> On Thu, Sep 02, 2010 at 04:18:54AM -0700, pauld wrote: > > There is only a "." on line 7. How would that trigger a syntax error? > > Because a ''.'' on a line on its own is not a valid Ruby expression... > > Dan > > -- > Daniel Bye > _ > ASCII ribbon campaign ( ) > - against HTML, vCards and X > - proprietary attachments in e-mail / \ > > application_pgp-signature_part > < 1KViewDownload-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Daniel Bye
2010-Sep-02 11:51 UTC
Re: Re: Rails 3 web server quits with error message on booting
On Thu, Sep 02, 2010 at 04:34:12AM -0700, pauld wrote:> Daniel, > > In that case, isn''t the code on Listing 2.2, 2.3, 2.4 wrong here at > http://railstutorial.org/chapters/a-demo-app#top > > Shouldn''t that have the normal methods in there instead?Heheh! No, there''s nothing wrong there - the ''.'' characters are simply placeholders for your own code. As your app grows, you''ll add more routes to routes.rb, and they will go where the dots are in the example listing. The same applies with the other listings - you need to fill out the method bodies with your own code, the exact nature of which will, of course, depend upon what your app needs to do. Try removing those pesky full stops and have another go. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \
Aleksey Gureiev
2010-Sep-02 11:56 UTC
Re: Re: Rails 3 web server quits with error message on booting
Paul, It looks like at some point when you started copy-pasting examples you got tired and stopped paying attention to explanations. Have a some rest, man. Dots alone are not a valid Ruby expression for sure. It''s all Ruby out there and has to comply. - A On 02/09/2010, at 2:34 PM, pauld wrote:> Daniel, > > In that case, isn''t the code on Listing 2.2, 2.3, 2.4 wrong here at > http://railstutorial.org/chapters/a-demo-app#top > > Shouldn''t that have the normal methods in there instead? > > Thanks, > Paul > > On Sep 2, 7:27 pm, Daniel Bye <ra...-tSCSLn4GjLmr5jXINAnWskB+6BGkLq7r@public.gmane.org> wrote: >> On Thu, Sep 02, 2010 at 04:18:54AM -0700, pauld wrote: >>> There is only a "." on line 7. How would that trigger a syntax error? >> >> Because a ''.'' on a line on its own is not a valid Ruby expression... >> >> Dan >> >> -- >> Daniel Bye >> _ >> ASCII ribbon campaign ( ) >> - against HTML, vCards and X >> - proprietary attachments in e-mail / \ >> >> application_pgp-signature_part >> < 1KViewDownload > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >
OK, thanks for the explanation. Paul On Sep 2, 7:56 pm, Aleksey Gureiev <spyro...-0MwgMyDycp/3oGB3hsPCZA@public.gmane.org> wrote:> Paul, > > It looks like at some point when you started copy-pasting examples you got tired and stopped paying attention to explanations. Have a some rest, man. > > Dots alone are not a valid Ruby expression for sure. It''s all Ruby out there and has to comply. > > - A > > On 02/09/2010, at 2:34 PM, pauld wrote: > > > > > Daniel, > > > In that case, isn''t the code on Listing 2.2, 2.3, 2.4 wrong here at > >http://railstutorial.org/chapters/a-demo-app#top > > > Shouldn''t that have the normal methods in there instead? > > > Thanks, > > Paul > > > On Sep 2, 7:27 pm, Daniel Bye <ra...-tSCSLn4GjLmr5jXINAnWskB+6BGkLq7r@public.gmane.org> wrote: > >> On Thu, Sep 02, 2010 at 04:18:54AM -0700, pauld wrote: > >>> There is only a "." on line 7. How would that trigger a syntax error? > > >> Because a ''.'' on a line on its own is not a valid Ruby expression... > > >> Dan > > >> -- > >> Daniel Bye > >> _ > >> ASCII ribbon campaign ( ) > >> - against HTML, vCards and X > >> - proprietary attachments in e-mail / \ > > >> application_pgp-signature_part > >> < 1KViewDownload > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > > > PGP.sig > < 1KViewDownload-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.