Skip to content

Commit e35367a

Browse files
committed
Request the url method directly on the banner
1 parent 337fc75 commit e35367a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/helpers/users_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def location_image_url_for(user)
191191
photo = LocationPhoto.for(user, params[:location])
192192
asset_path("locations/#{photo.image_name}")
193193
else
194-
user.banner_url
194+
user.banner.url
195195
end
196196
end
197197

app/views/users/edit.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
.left
7575
%p Personalize your profile by uploading your own background photo. Please note hipsterizing your photo can take up to one or two minutes.
7676
- if !@user.banner.blank?
77-
= image_tag(@user.banner_url)
77+
= image_tag(@user.banner.url)
7878
.div
7979
= form.check_box :remove_banner
8080
= form.label :remove_banner, "Remove Banner", class: 'checkbox-label'
@@ -234,7 +234,7 @@
234234
.current-resume
235235
- if current_user.has_resume?
236236
= link_to 'Your current resume', current_user.resume_url, class: 'track', 'data-action' => 'upload resume', 'data-from' => 'job application'
237-
237+
238238
= form_tag(resume_uploads_url, method: :post, multipart: true) do
239239
.upload-resume
240240
= file_field_tag :resume

0 commit comments

Comments
 (0)