Skip to content

Commit

Permalink
update location method to display country
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushC committed Apr 12, 2024
1 parent 6e46e5c commit fb9e877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/school.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def website
end

def location
"#{city}, #{state}"
"#{city}, #{state}, #{country}"
end

# TODO: Consider renaming this.
Expand Down
2 changes: 1 addition & 1 deletion app/views/teachers/_teacher_info.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<div class="row mb-4">
<div class="col-sm-4 font-weight-bold">School Location:</div>
<div class="col-sm-8">
<%= "#{teacher.school.location}, #{teacher.school.country}" %>
<%= "#{teacher.school.location}" %>
</div>
</div>
<div class="row">
Expand Down

0 comments on commit fb9e877

Please sign in to comment.