expire_page doesn't seem to work with controller and action
ianwalter opened this issue · 6 comments
ianwalter commented
The documentation makes it seem like you can do:
expire_page controller: 'home', action: 'index'But this doesn't seem to work. The page isn't being expired.
Also, after looking through the tests, it seems only expiring a page with a custom route is tested?
expire_page '/index.html'jronallo commented
I'm also experiencing this issue.
DamirSvrtan commented
Bump. @fxn @rafaelfranca ?
Vorob-Astronaut commented
+1
jmarbach commented
+1
pixeltrix commented
The expire_page method passes an options hash to url_for so it'll look for whatever that generates with the special case of looking for /index plus whatever the default extension is (typically .html).
If this isn't happening then please provide an example.
fxn commented
It's been more than three years here. Please if you can provide a cocrete example to reproduce the problem feel free to open an issue again.