Method: ApplicationController#render_api_errors
- Defined in:
- app/controllers/application_controller.rb
#render_api_errors(*messages) ⇒ Object
770 771 772 773 |
# File 'app/controllers/application_controller.rb', line 770 def render_api_errors(*) @error_messages = .flatten render :template => 'common/error_messages', :format => [:api], :status => :unprocessable_entity, :layout => nil end |