Module: AjaxErrorRender
- Defined in:
- lib/ajax_error_render.rb,
lib/ajax_error_render/railtie.rb,
lib/ajax_error_render/version.rb,
lib/generators/ajax_error_render/install/install_generator.rb
Defined Under Namespace
Classes: InstallGenerator, Railtie
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
Instance Method Details
#render_ajax_error(model) ⇒ Object
5 6 7 8 |
# File 'lib/ajax_error_render.rb', line 5 def render_ajax_error(model) @model = model render 'errors/error' end |