How can I connect HAML templates on my controllers?
I am using Rails 7 in API Mode and I want to return one HTML template on my application
P.D: I am including ActionController::Base, because Rails in FullStack mode uses ActionController::Base to returning HTML templates
# app/views/tickets/ticket.html.haml
%strong= Hello World
# app/controllers/tickets_controller.rb
class TicketsController < ActionController::Base
def index
# (return HAML template here)
end
end
I resolve the problem! Just I do this:
Just I render it as a HTML template almost like FullStack Mode