search for: has_photo

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

2008 Jan 24
1
Uploading files: wrong number of arguments (1 for 0)
...build(params[:user]) if @account.save ... else render :action => "new" end end Here is my model file: class Account < ActiveRecord::Base has_many :agents has_many :users has_one :photo, :as => :photo_for validates_associated :photo, :if => :has_photo? end If I include puts params[:photo].inspect in the controller it does show me there is a datastream there ----- {"filename"=>#<ActionController::UploadedStringIO:0x2519cc4>} Thanks for the help. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------...