Files
simple-aircraft-manager-rails/app/controllers/calendar_tokens_controller.rb
T

8 lines
303 B
Ruby

# Profile: create (or replace) the secret calendar feed link.
class CalendarTokensController < ApplicationController
def create
current_user.regenerate_calendar_token
redirect_to edit_profile_path(anchor: "calendar"), notice: "Calendar link ready. Any earlier link no longer works."
end
end