Displaying 1 result from an estimated 1 matches for "listinghom".
Did you mean:
listinghome
2010 Jul 11
0
Attachement_fu error when updating existing photos
...39; %>
</p>
<% end %>
My rails code:
def edit
@photo = Photo.find(params[:id])
end
def update
@photo = Photo.find(params[:id])
if @photo.update_attributes(params[:photo])
flash[:notice] = ''Photo was successfully updated.''
redirect_to(''/listingHome/active/edit/'' + @photo.lisitng_id)
end
end
Method failing in attachement_fu
# Gets the full path to the filename in this format:
#
# # This assumes a model name like MyModel
# # public/#{table_name} is the default filesystem path
# RAILS_ROOT/public/my_models/5/blah.jpg
#
# Overw...