Skip to content

Commit 66247cb

Browse files
committed
Update project controller to take website correctly
1 parent 542b38d commit 66247cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/controllers/project_controller.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ defmodule CodeCorps.ProjectController do
2626
def handle_create(_conn, attributes) do
2727
%Project{} |> Project.create_changeset(attributes)
2828
end
29+
30+
def handle_update(_conn, project, attributes) do
31+
project |> Project.update_changeset(attributes)
32+
end
2933
end

0 commit comments

Comments
 (0)