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