module BivouacSample::Controllers class SubmitRemote < R '/submit_remote' def get render :submit_remote end def post answer = input.response @isay = "Hum... Essayer autre chose mon brave!" if answer.upcase == "BIVOUAC" @isay = "Alors là je dis BRAVO!" elsif answer.upcase == "CAMPING" @isay = "Essayez le camping sauvage, c'est pas mal aussi ;)" end render :_submit_remote_result end end end