class ActiveResponse::Responders::JS

Public Instance Methods

redirect(**opts) click to toggle source
# File lib/active_response/responders/js.rb, line 8
def redirect(**opts)
  controller.render js: "window.location = '#{opts[:location]}'"
end