20 lines
620 B
Plaintext
20 lines
620 B
Plaintext
= form_for @user_organization_relationship do |f|
|
|
- if @user_organization_relationship.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@user_organization_relationship.errors.count, "error")} prohibited this user_organization_relationship from being saved:"
|
|
%ul
|
|
- @user_organization_relationship.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.field
|
|
= f.label :user_id
|
|
= f.number_field :user_id
|
|
.field
|
|
= f.label :organization_id
|
|
= f.number_field :organization_id
|
|
.field
|
|
= f.label :relationship
|
|
= f.text_field :relationship
|
|
.actions
|
|
= f.submit 'Save'
|