Skip to content

Commit ccb99db

Browse files
committed
handles integer user strings passed to rank badge method
1 parent ce97d67 commit ccb99db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def rank_badge(user)
2323
curator_icon = fa_icon 'hands-helping', text: ' Curator'
2424

2525
id = user
26-
user = User.find(user.to_i) if id.instance_of? String
26+
user = User.find(user.to_i) if id.class == String || id.class == Integer
2727
return if user.nil?
2828

2929
if user.deactivated?

public/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>The page you were looking for doesn't exist (404)</title>
4+
<title>The page you are looking for doesn't exist (404)</title>
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<style>
77
.rails-default-error-page {
@@ -58,7 +58,7 @@
5858
<!-- This file lives in public/404.html -->
5959
<img src="404.png" alt="">
6060
<h1>Uh-Oh!</h1>
61-
<h2>It's looks like you're lost...</h2>
61+
<h2>It looks like you're lost...</h2>
6262
<div class="back-home">
6363
<a href="/" class="btn">Back Home</a>
6464
</div>

0 commit comments

Comments
 (0)