I have a problem with my code, I want Rails to remote: true from "Login" with a class and an id as below, but the server passes a GET, but I want it to look in the controller format.js to send a POST type JS function, I need to know if the code of my view / index.html.erb below is correct:
In view / index.html.erb
no controller: class HomeController < ApplicationController
def index
respond_to do |format|
format.html
format.js { }
end
end
end