Skip to content

Conversation

inclooder
Copy link

@inclooder inclooder commented Mar 22, 2018

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 :)

@kuiro5
Copy link

kuiro5 commented Apr 12, 2018

+1

@kirantpatil
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants