Activity
You could do that initially. Although if you want to prevent users from hijacking the URL, you'll also need to protect your controllers by ensuring that the URL account_id
always matches the current_user
account ID. For example:
redirect_to root_path(script_name: "") unless current_user.account == Current.account