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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With