search for: photo_stor

Displaying 1 result from an estimated 1 matches for "photo_stor".

Did you mean: photo_store
2011 Aug 27
5
image override*
...roy @photo = Photo.find(params[:id]) @photo.destroy respond_to do |format| format.html { redirect_to(photos_url) } format.xml { head :ok } end end end ******************************** class Photo < ActiveRecord::Base # Root directory of the photo public/photos PHOTO_STORE = File.join RAILS_ROOT, ''public'', ''images'' # Invoke save_photo method when save is completed after_save :save_photo def load_photo_file=(data) # Record the filename self.filename = data.original_filename # Store the data for later use...