Rubymine can not recognize path
Asked Answered
O

0

5

Even for the latest version of Rubymine(7.1), it could not recognise well some paths, for example:

<p><%= link_to 'Hello!', welcome_say_hello_path %></p>

Here, welcome_say_hello_path is defined in routes.rb:

get 'welcome/say_hello' => 'schools#search'

Is there anyone has the same problem?

Oilcan answered 14/4, 2015 at 2:7 Comment(2)
is that rubymine's fault if its not a named route?Posticous
Sometimes, even you have had a named route, Rubymine still can not know it. For example, I have this: get 'welcome/say_hello' => 'schools#search',:as => 'test', and try to use in view file: <p><%= link_to 'Hello!', test_path %></p>Oilcan

© 2022 - 2024 — McMap. All rights reserved.