Sha256: 9813e9542edd85506a1af65b19dd8d925262e7934655ccbda0972105aa89e45e

Contents?: true

Size: 151 Bytes

Versions: 11

Compression:

Stored size: 151 Bytes

Contents

if @object.errors.empty?
  json.messages t(:form_sended_succesfully)
else
  json.messages @object.errors.full_messages
  json.errors @object.errors
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-ajax-form-1.2.1 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-2.1.0 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-2.0.0 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.2.0 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.1.5 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.1.3 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.1.2 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.1.1 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.1.0 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.0.1 app/views/alchemy/ajax_forms/create.json.jbuilder
alchemy-ajax-form-1.0.0 app/views/alchemy/ajax_forms/create.json.jbuilder