Displaying 1 result from an estimated 1 matches for "save_with_permiss".
2010 Aug 18
0
paper clip plugin validation fails
...#39;
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start''
-e:4:in `load''
-e:4
here are my controller code
def create
@user = @current_user.id
puts"usertrrrr"+@user.inspect
@image = Image.new(params[:image].merge(:user_id => @user))
if @image.save_with_permissions(params[:users])
puts"if saved"
else
puts"if not saved"
format.js # create.js.rjs
format.xml { render :xml => @image.errors, :status =>
:unprocessable_entity }
puts"hiiiiiiiiiiiiiiiiii"+@image.errors.insp...