module AjaxErrorRenderer
Constants
- VERSION
Private Instance Methods
render_ajax_error(location: '
click to toggle source
# File lib/ajax_error_renderer.rb, line 6 def render_ajax_error(location: '#error', model:, status: 422, move: true, template: 'error') @location = location @model = model @move = move @template = template render 'ajax_errors/error', formats: :js, status: status end