0
0
Fork 0

Adding views for the profile and entry pages

This commit is contained in:
Eugen Rochko 2016-02-26 20:48:20 +01:00
parent f16b31f077
commit 24646d5769
13 changed files with 177 additions and 7 deletions

View file

@ -1,7 +1,17 @@
class ProfileController < ApplicationController
before_action :set_account
def show
end
def entry
@entry = @account.stream_entries.find(params[:id])
@type = @entry.activity_type.downcase
end
private
def set_account
@account = Account.find_by!(username: params[:name], domain: nil)
end
end