It smells like Yor’re calling over and over the maintenance action
defined in ApplicationController.
Probably the ‘maintenance’ action which is replying in static
controller is the one defined in ApplicationController and not the one
you expect.
breakpoint’ll be your friend.
It smells like Yor’re calling over and over the maintenance action
defined in ApplicationController.
Probably the ‘maintenance’ action which is replying in static
controller is the one defined in ApplicationController and not the one
you expect.
breakpoint’ll be your friend.
Paolo
100% right Paolo !! Thanks a lot ! I’ve changed action name used in the
redirect_to and it works.
Well ApplicationController does have an action called maintenance, so
rails might not be completely wacky. Out of interest if you mark the
maintenance method in ApplicationController as protected, does that also
solve the problem ?
Well ApplicationController does have an action called maintenance, so
rails might not be completely wacky. Out of interest if you mark the
maintenance method in ApplicationController as protected, does that also
solve the problem ?
Fred
I did not tried with protecting but I’ve changed the method’s name in
the ApplicationController and put back the action name of :action to
“maintenance” and it works also…
So, as you said there something between that maintenance method defined
in rails and mine…
Thanks !
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.