Displaying 1 result from an estimated 1 matches for "update_custom".
Did you mean:
  update_customer
  
2007 May 28
1
upload_column problems on post after validation error
...EL_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
    begin
      ...
      hostel.attributes = params[:hostel]   # Where th...