form_test_helper, select_form update
on April 02, 2008 @ 05:28 PM
Revision 71 of form_test_helper includes a bug fix for the select_form method. Previously calling select_form with a block would submit the form. The fix forces you to call submit on the form. So…
1 2 3 4 5 6 7 8 9 10 |
# THIS which used to submit the form form = select_form 'trip' do |form| form.trip.destination = "bahamas" end # WILL NOW LOOK LIKE THIS form = select_form 'trip' do |form| form.trip.destination = "bahamas" end form.submit |
This doesn’t affect the usage of submit_form which still acts as expected.
This will be included in the next release of form_test_helper. Currently trunk for form_test_helper works with Rails 2.0.0 and higher (including today’s most recent trunk commit).
The form_test_helper edge docs have been updated as well and can be found here


0 comments
Jump to comment form | comments rss [?]