got moved photo.image.stuff to photo.url[:stuff]
This commit is contained in:
parent
dc4e595be6
commit
284601c6b1
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
module PhotosHelper
|
module PhotosHelper
|
||||||
|
|
||||||
def linked_scaled_photo(photo, album)
|
def linked_scaled_photo(photo, album)
|
||||||
link_to (image_tag photo.image.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
link_to (image_tag photo.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_to_prev(photo, album)
|
def link_to_prev(photo, album)
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@
|
||||||
= p.hidden_field :image_url, :value => @profile.image_url, :id => 'image_url_field'
|
= p.hidden_field :image_url, :value => @profile.image_url, :id => 'image_url_field'
|
||||||
- for photo in @photos
|
- for photo in @photos
|
||||||
- if photo.url(:thumb_medium) == @profile.image_url
|
- if photo.url(:thumb_medium) == @profile.image_url
|
||||||
%div.small_photo{:id => photo.image.thumb_medium.url, :class=>'selected'}
|
%div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'}
|
||||||
= check_box_tag 'checked_photo', true, true
|
= check_box_tag 'checked_photo', true, true
|
||||||
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
||||||
- else
|
- else
|
||||||
%div.small_photo{:id => photo.image.thumb_medium.url}
|
%div.small_photo{:id => photo.url(:thumb_medium)}
|
||||||
= check_box_tag 'checked_photo'
|
= check_box_tag 'checked_photo'
|
||||||
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
||||||
=will_paginate @photos
|
=will_paginate @photos
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue