app/controllers/kohort_controller.rb
#create a kohort if a matching one does not exist
create a kohort if a matching one does not exist
create a kohort if a matching one does not exist
def create
    @kohort = Kohort.create(kohort_params)
    if @kohort.save
    render "my_kohorts", notice: "kohort joined!"
  else
    render "my_kohorts", notice: "you're forgetting something"
  end
end
def create @kohort = Kohort . create ( kohort_params ) if @kohort . save render "my_kohorts" , notice : "kohort joined!" else render "my_kohorts" , notice : "you're forgetting something" end end
create a kohort if a matching one does not exist
create a kohort if a matching one does not exist
# puts @kohort