search for: customer_address_list

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

2006 May 03
1
error_messages_for when saving within another model
...= Customer.find(params[:id]) @customer.addresses.create(params[:address]) @saved = @customer.save end That passes to a rjs template like this: if @saved page.visual_effect :Fold, ''add_address'' page.replace_html ''addresses'', :partial => ''customer_address_list'' else page.replace_html ''address_error'', "#{error_messages_for(''customer'')}" page.visual_effect :Highlight, ''address_error'' page.show ''address_error'' end To handle the error messages. I am unable to get a...