Displaying 1 result from an estimated 1 matches for "uploaded_photos".
2008 Sep 18
2
Setting up Fleximage
...leshooting, if a table even needed
to be created for the photos or what my next step should be.
If anyone could point me in the right direction, I''d appreciate it. :)
Model (photo.rb)
class Photo < ActiveRecord::Base
acts_as_fleximage :image_directory => ''public/images/uploaded_photos''
end
Controller (photos_controller.rb)
class PhotosController < ApplicationController
def new
end
def create
@photo = Photo.new(params[:photo])
if @photo.save
redirect_to photo_url(@photo)
else
flash[:notice] = ''Your photo did not pass validation!''...