Displaying 1 result from an estimated 1 matches for "donationcontrol".
2006 Jun 29
2
? concerning ActiveRecord, Action and template
...yed with data just entered as is - allowing updating.
Scenario Two:
User selects this record off list in another form. Donation_entry form
is displayed with this record. User modifies data and hits submit. The
record is left displayed on form as is - same as when adding a record.
Question:
In DonationController, action method donation_entry, couldn''t I do the
following, thus avoiding two or three templates/forms - one for each
action, if I have just the one action of donation_entry:
def donation_entry (in psuedo code)
if new_record
add record
else
if save record
save_record...