search for: address_error

Displaying 2 results from an estimated 2 matches for "address_error".

2006 May 03
1
error_messages_for when saving within another model
...s[: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 proper error message however. If i use error_messages_fo...
2006 Apr 04
3
Forms, view & AJAX best practice help
What i''m trying to get working is I have a controller called "permissions" and a view "permissions.rhtml". This view has a hidden div that contains a form for adding new roles. Its just a single textfield. Also on the page I have a dropdown list of roles and then underneath that a div that contains a list of permissions for the role selected in the dropdown. I