Rails current_page? “fails” when method is POST
问题 I have a really simple problem. I have a page of reports and each report has its own tab. I'm using current_page? to determine which tab should be highlighted. When I submit any report, current_page? doesn't seem to work anymore, apparently because the request method is POST . Is this the intended behavior of current_page? I have a hard time imagining why that would be the case. If it is, how do people normally get around this problem? Here's an example of a current_page? call: <li><%= link