add links to personal room and root

This commit is contained in:
Zachary Chai
2016-10-18 16:09:41 -04:00
parent 83c9b1b324
commit b16212a2e9
3 changed files with 18 additions and 14 deletions

View File

@ -11,4 +11,8 @@ class User < ApplicationRecord
def self.twitter_username(auth_hash)
auth_hash['info']['nickname']
end
def room_url
"/rooms/#{username}"
end
end