Hi everyone.
(Rails 4.1.x)
I’m trying to add a css class in a view but only if current_page?(courses_path) #=> true. The problem I’m having is that that is never returning true even if (according to the docs) it should.
I created a gist with a short debugging session where I think the problem gets shown really clear: https://gist.github.com/oboxodo/602e18250e6af77bc4d8
In summary, I think something’s going wrong with rails/rack’s request parsing and SCRIPT_NAME + PATH_INFO variables where the initial slash in “/courses” is not being processed. but it’s clearer if you look at the gist.
Anyone having a similar issue?
Thanks! Diego