Displaying 1 result from an estimated 1 matches for "signup_customer".
2007 May 28
1
upload_column problems on post after validation error
..."400x400"
image_column :photo_1, :store_dir => HOSTEL_PHOTO_DIR,
:versions => { :thumb => HOSTEL_PHOTO_THUMB,
:normal => HOSTEL_PHOTO_NORMAL},
:filename => Proc.new {|inst, orig, ext|
"photo_1.#{ext}"}
View (signup_customer.rhtml):
<% upload_form_tag :action => "update_customer" do %>
...
<label for="hostel_photo_1">Photo 1</label>
<%= upload_column_field "hostel", "photo_1" %>
<% end %>
Controller:
def update_customer
begi...