Closed vladfaust closed 5 years ago
Onyx.render(:json, accept_only: true) # Will render only if "Accept" header includes "application/json" Onyx.render(:html) # Will render only if not rendered before