batch_request_api icon indicating copy to clipboard operation
batch_request_api copied to clipboard

Fix 'Missing :controller key on routes definition'

Open inclooder opened this issue 8 years ago • 2 comments

I have the following error after running rake middleware. I use rails 5.2.1 and ruby 2.5.0

rake aborted!                                                                                                                                                                                                                                                                     
ArgumentError: Missing :controller key on routes definition, please check your routes.                                                                                                                                                                                            
/bundler_data/gems/newrelic_rpm-3.18.1.330/lib/new_relic/agent/instrumentation/rake.rb:28:in `invoke'                                                                                                                                                                             
/bundler_data/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'                                                                                                                                                                                                                  
Tasks: TOP => middleware => environment                                                                                                                                                                                                                                           
(See full trace by running task with --trace)

Fixed it by adding to: to routes with 404 response. We should never hit this but it's necessary to satisfy rails :)

inclooder avatar Mar 22 '18 16:03 inclooder

+1

kuiro5 avatar Apr 12 '18 19:04 kuiro5

Any updates on this MR, why it is still not merged ?

kirantpatil avatar Jan 29 '19 06:01 kirantpatil