There is this helpful method I’ve been evolving in my apps for a bit, it’s called render_either and it goes a little something like this: (in application.rb)
def render_either(opts = {})
# For MIME:Type Recognition
# respond_to do |f|
# f.js {@wants = […]
-
« Home
Contents
