class FeedbacksController < ApplicationController
before_action :set_feedback, only: [:show, :edit, :update, :destroy]
respond_to :html, :js, strict: true
end
When a request comes in, for example for an JS response, this steps happen:
Expected behaviour:
1) the responder searches for a template at feedbacks/new.js;
2) if the template is not available, is should lookup in application/new.js;
Current behaviour:
1) the responder searches for a template at feedbacks/new.js;
2) if the template is not available, feedbacks/new.html was invoked;
app/views/
When a request comes in, for example for an JS response, this steps happen:
Expected behaviour: 1) the responder searches for a template at feedbacks/new.js; 2) if the template is not available, is should lookup in application/new.js;
Current behaviour: 1) the responder searches for a template at feedbacks/new.js; 2) if the template is not available, feedbacks/new.html was invoked;