Hallo,... Am Sonntag, 25. November 2007 schrieb Jan Luehr: > Hallo, > > ich habe im controller eine ziemlich einfache Methode: > > def update > @holding = Holding.find(params[:id]) > load_lists > if @holding.update_attributes(params[:holding]) > flash[:notice] = 'Bestand erfolgreich aktualisiert.' > redirect_to :action => 'show', :id => @holding > else > render :action => 'edit' > end > end > > jedoch funktioniert sie nicht. es greift immer der else Fall, d.h. das die > Edit-Maske wird nicht gerendert.
kleiner Tippfehler: »d.h. die Edit-Maske wird immer gerendert«. Alles Gute Jan _______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
