mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
14 lines
332 B
Ruby
14 lines
332 B
Ruby
class UsersController < ApplicationController
|
|
def index
|
|
redirect_to new_session_path(User)
|
|
end
|
|
|
|
def show
|
|
@user = User.find(params[:id])
|
|
|
|
Mixpanel::Tracker.new(Rails.application.config.mixpanel_token).track(@user.id, 'viewed profile', {
|
|
'sharing any content': @user.public_content_count != 0
|
|
})
|
|
end
|
|
end
|