Nested resources - RubyMine only comprehends to one level

It looks like RubyMine might have a problem figuring out nested resources.

e.g.

routes.rb

  resources :organisations do
    resources :workers
    resources :sites do
      resources :customers
    end
  end


When I reference organisation_url(1) it's fine but if I try to use organisation_sites_url(1) then RubyMine flags it with 'Cannot find oranisation_sites_url'.

I wonder if RubyMine has its own comprehension for routes.rb, if it greps the output of 'rake routes' or if it uses ActionController::Routing::Routes.routes...?

Whichever way it seems it's not getting further than one level down.

Anyone else noticed this? Anyone know a way to fix it?

Thanks!

3 comments
Comment actions Permalink

Hello Jerome,

This looks like a bug, could you please submit an issue at: http://youtrack.jetbrains.net/issues/RUBY ?
In this case you'll get notified once it is fixed.

Thanks in advance,
Oleg

0
Comment actions Permalink

OK, I've done that. Thanks Oleg :)

0

Please sign in to leave a comment.