8
Chcę użyć JBolder'a z Railsami 5.0.0.beta1.1 w trybie API. Po wyjęciu z pudełka nie działa, nawet podczas tworzenia katalogu app/views.Tworzenie JBlogera z Railsiem 5 Tryb API
Na przykład mam:
# app/controllers/tests_controller.rb
class TestsController < ApplicationController
# The requests gets inside the action
def test
end
end
# app/views/tests/test.json.jbuilder
json.test "It works!"
Błąd Dostaję jest
No template found for TestsController#test, rendering head :no_content
Chyba muszę zmienić pewne rzeczy w plikach konfiguracyjnych. Co mam do zrobienia?
każdej aktualizacji na ten temat? Mam ten sam problem. –
Tutaj pojawia się problem: https://github.com/rails/jbuilder/issues/317 – schmijos