dont use object_path

This commit is contained in:
maxwell 2010-11-29 19:57:20 -08:00
parent 03e3c3a202
commit 2d3f2df1fd
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
.right
= render 'shared/reshare', :current_user => current_user, :post => post if post.is_a? StatusMessage
= link_to t('delete'), object_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
= link_to t('delete'), status_message_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
= render 'status_messages/status_message', :post => post

View file

@ -8,5 +8,5 @@
- if post.photos.count > 0
.photo_attachments
- for photo in post.photos
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo)
= link_to (image_tag photo.url(:thumb_medium)), photo_path(photo)