rails server error

Asked 2 years ago, Updated 2 years ago, 46 views

I am developing at rails.

An error occurred when I tried to boot to rails server.
How can I solve this problem?
I would appreciate it if you could reply.

=>Booting Puma
=>Rails 5.1.5 application starting in development 
=>Run `rails server-h` for more startup options
Exiting
/Users/ITABASHIYUKI/Desktop/baukis/config/routes.rb:7:in`block(2 levels) in<top(required)>':undefined method `delate' for #<ActionDispatch::Routing::Mapper:0x007fadbde88cb8>NoordModer(Noord)
Did you mean?delete
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb: in `block(2 levels) in namespace'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb: 866:in`scope'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb:in`block in namespace'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb: 1820:in`path_scope'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb: 934:in`namespace'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/mapper.rb: 1546:in`namespace'
from/Users/ITABASHIYUKI/Desktop/baukis/config/routes.rb:2:in`block in<top(required)>'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/route_set.rb:436:in`instance_exec'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/route_set.rb:436:in `eval_block'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionpack-5.1.5/lib/action_dispatch/routing/route_set.rb:418:in`draw'
from/Users/ITABASHIYUKI/Desktop/baukis/config/routes.rb:1:in`<top(required)>'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb: 286: in `load'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb: 286:in`block in load'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in`load_dependency'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb: 286: in `load'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:55:in`block in load_paths'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:55:in`each'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:55:in`load_paths'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:18:in`reload!'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:41:in`block in updater'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.5/lib/active_support/file_update_checker.rb:81:in`execute'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:42:in`updater'
from/Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-5.1.5/lib/rails/application/routes_reloader.rb:31:in`execute_if_updated'
from /Users/ITABASHIYUKI/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rails-

Below is an abbreviation for the number of characters.

ruby-on-rails ruby

2022-09-30 17:45

1 Answers

/Users/ITABASHIYUKI/Desktop/baukis/config/routes.rb:7:in`block(2 levels) in<top(required)>':undefined method `delate' for #<ActionDispatch::Routing::Mapper:0x007fadbde88bod(godModer)
Did you mean?delete

The error message is correct.delate on line 7 of config/routes.rb is a spelling error.


2022-09-30 17:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.