I know the fact that by default Rails chooses the javascript file depending on action's name to render:
For example if I have
def create
#Code and Stuff happening here
end
and here I have
create.js.erb
which will be ran by default
But is there a way that I can choose a different javascript file to be rendered from inside the action ?
For example
create1.js.erb
create2.js.erb