Hi everyone,
I am upgrading a Rails app that contains render :nothing
in a controller class. I want to replace this line with head :ok
which serves the same purpose. However, this causes me a trouble, since this controller contains a method named head (no parameter). I don’t want to change the method name, since I didn’t write this code.
Can I still use the head method from ActionController::Head
, without changing the method name in my controller? If so, how can I achieve this?
Thanks in advance