Thanks for your response, sorry but my unknows go far away:
I have two entitys:
1- Views or Partial: and I undersant this: render :partial /shred/foo
2- Method/controller (X). now I place this method in
application_controller and the .js.rjs in views/application/X.js.rjs. It
But I do that because in “menu” controller and “Maintenance” contoller I
call X, but not as a “redirecto_to” otherwise as a normal call, as if it
was a function, only to initialize variables.
So that, I need to put X method in applicationController, to be seen
from the others controllers (menu and Maintenance).
–> And this is weird, ¿ or not ? the X method is used for two porpuses:
as a response of a browser JS request, and as “function”
And to tho that I put in X:
respond_to do |format|