I need to implement a custom Responder under \"Module Responders\", however, I am not sure where 开发者_JS百科such code should live?This is typically what the lib directory is for.
class Api::StoresController < ApplicationController respond_to :json def index @stores = Store.all(:include => :products)
I am trying to figure out how to set the layout from a custom made responder. I want to use the request.xhr? to set the layout for render to \'ajax\'.Does anybody know how to do that?
有D晕 2022-04-23 17:40 开发者_如何转开发 偶尔看看就行别太认真