Commit 644873b5 authored by royce-matthew's avatar royce-matthew

a

parent ad8d587b
class Candidate < ActiveRecord::Base class Candidate < ActiveRecord::Base
validates :first_name, presence: true validates :first_name, presence: true
validates :nickname, presence: true
validates :last_name, presence: true validates :last_name, presence: true
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<%= f.association :position, label_method: :name, value_method: :id %> <%= f.association :position, label_method: :name, value_method: :id %>
<%= f.input :first_name%> <%= f.input :first_name%>
<%= f.input :last_name %> <%= f.input :last_name %>
<%= f.input :nickname %>
<div class="" id="box"></div> <div class="" id="box"></div>
<%= f.input :image_link, input_html:{id:"field"}%> <%= f.input :image_link, input_html:{id:"field"}%>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment