redesigned meeting and room page

This commit is contained in:
Zachary Chai
2016-10-25 10:11:36 -04:00
parent 551b64bb59
commit d3ad6980d9
4 changed files with 107 additions and 59 deletions

View File

@ -19,6 +19,14 @@ class User < ApplicationRecord
auth_hash['info']['nickname']
end
def ownership_name
if username.end_with? 's'
"#{username}'"
else
"#{username}'s"
end
end
def room_url
"/rooms/#{username}"
end