= form_for @api_token do |f|
  - if @api_token.errors.any?
    #error_explanation
      %h2= "#{pluralize(@api_token.errors.count, "error")} prohibited this api_token from being saved:"
      %ul
        - @api_token.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :email
    = f.text_field :email
  .field
    = f.label :nombre
    = f.text_field :nombre
  .field
    = f.label :fecha_expiracion
    = f.datetime_select :fecha_expiracion
  .actions
    = f.submit 'Save'
