You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
322 B

  1. class ProfileController < ApplicationController
  2. before_action :set_account
  3. def show
  4. end
  5. def entry
  6. @entry = @account.stream_entries.find(params[:id])
  7. @type = @entry.activity_type.downcase
  8. end
  9. private
  10. def set_account
  11. @account = Account.find_by!(username: params[:name], domain: nil)
  12. end
  13. end