app.kluk.fr/app/controllers/home_controller.rb

13 lines
252 B
Ruby
Raw Normal View History

2026-02-20 10:30:12 +01:00
class HomeController < ApplicationController
allow_unauthenticated_access
def index
2026-02-26 17:17:39 +01:00
@user = User.find_by(username: request.subdomain)
if @user&.public?
render "moods/index"
2026-02-20 10:30:12 +01:00
else
redirect_to dashboard_path
end
end
end