Displaying 2 results from an estimated 2 matches for "your_model_instance".
2007 Oct 10
1
form builder
hi,
I''m creating a custom form_builder and
i''m trying to figure out how would helpers like text_field know if
the field has an error message so I can highlight it and show the
message text
thanks
linoj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2006 Dec 29
3
Functional test a "create" action when a validation fails
I''m trying to write a functional test of a "create" action in one of my
controllers. In the corresponding model I have a
"validates_uniqueness_of :location". In the test case I am
constructing I have the create fail with the error "Location has
already been taken". Is there a way I can write an assertion like:
assert_equal "Location has already been