rubyonrails-talk
September 1st, 2006, 12:39 AM
Hello,
I am updating two objects from a form with the code:
def update
@court = Court.find(params[:id])
@address = @court.address
valid = @court.valid?
if @address.valid? and valid and
@court.update_attributes(param s[:court]) and
@address.update_attributes(par ams[:address])
flash[:notice] = 'Court was successfully updated.'
More... (http://groups.google.com/group/rubyonrails-talk/msg/b9eb9dd2658cebb3)
I am updating two objects from a form with the code:
def update
@court = Court.find(params[:id])
@address = @court.address
valid = @court.valid?
if @address.valid? and valid and
@court.update_attributes(param s[:court]) and
@address.update_attributes(par ams[:address])
flash[:notice] = 'Court was successfully updated.'
More... (http://groups.google.com/group/rubyonrails-talk/msg/b9eb9dd2658cebb3)