Added 3 Positions: President, Vice President & Senator

parent 655ba07d
...@@ -20,7 +20,7 @@ class CandidatesController < ApplicationController ...@@ -20,7 +20,7 @@ class CandidatesController < ApplicationController
render "admin/candidates/new.html.erb" render "admin/candidates/new.html.erb"
end end
end end
def update def update
@candidate = Candidate.find(params[:id]) @candidate = Candidate.find(params[:id])
if @candidate.update(candidate_params()) if @candidate.update(candidate_params())
......
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