respond_to do |f|
# json must come before html here, so it gets used as the
# default format when js is requested by the client. This lets
respond_to do |f|
# json must come before html here, so it gets used as the
# default format when js is requested by the client. This lets