search for: photos_url

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

Did you mean: photo_url
2011 Aug 27
5
image override*
...ot; } format.xml { render :xml => @photo.errors, :status => :unprocessable_entity } end end end # DELETE /photos/1 # DELETE /photos/1.xml def destroy @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...