Ruby is a dynamic language and therefore some things are hard to parse intelligently for the IDE.
However showing routes and helpers like "people_path" etc should work, but you must restart the server if you change it!
Вопрос
I'm using Rubymine (5.4.3.2.1) for Hartl's RoR tutorial and I'm having some troubles with path helpers. root_path works just fine but rubymine says 'cannot find xxxx_path' for the rest actions in my controller.
Rspec and Rails server are working just fine with those same path helpers!!
My routes.rb:
SampleProject::Application.routes.draw do
get "users/new"
root 'static_pages#home'
match '/signup', to: 'users#new', via: 'get'
match '/help', to: 'static_pages#help', via: 'get'
match '/about', to: 'static_pages#about', via: 'get'
match '/contact', to: 'static_pages#contact', via: 'get'
end
I also tried to use get instead of match but that didn't help.
Решение
Ruby is a dynamic language and therefore some things are hard to parse intelligently for the IDE.
However showing routes and helpers like "people_path" etc should work, but you must restart the server if you change it!