I have the following update method and need to append a subdirectory to a
single field..
def update
@product = Product.find(@params[:id])
if @product.update_attributes(@params[:product])
flash[''notice''] = ''Product was successfully
updated.''
redirect_to :action => ''show'', :id => @product
else
render_action ''edit''
end
end
..if the field name is ''filelocation'', how can I modify the
above code.
I have a browse functionality working but the update only adds the
filename to the database, I need to automatically append "\images\".
Thanks,
Jim
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it''s
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/