Files
danbooru/app/controllers/static_controller.rb
2013-06-30 11:37:15 -04:00

14 lines
288 B
Ruby

class StaticController < ApplicationController
def terms_of_service
end
def accept_terms_of_service
cookies.permanent[:accepted_tos] = "1"
url = params[:url] if params[:url] && params[:url].start_with?("/")
redirect_to(url || posts_path)
end
def error
end
end