I would like to wrap all of my javascript responses to the client in a layout which deals with additional things such as errors.
I can’t seem to figure out how to get a JS response (i.e. users/create.js.html) to cascade up into a javascript specific layout (e.g. layouts/applicaton.js.erb).
Is this possible?
You can define the layout in the controller action. As I’m not sure about js layouts you might need to rename it to something other than application. Also I don’t know if you can include the extension but play about with it and report back 🙂 :