Displaying 1 result from an estimated 1 matches for "update_softwar".
Did you mean:
update_software
2006 Mar 06
2
Computer Inventory: Problems Retaining Values in a Forms
...) <br />
...snip...snip...
admin_controller.rb
=======================
>> Any idea why I do not see any values
>> in the edit form when trying to edit a software that is already in the
database?
def edit_software
@software = SoftwareComponent.find(params[:id])
end
def update_software
@software = SoftwareComponent.find(params[:id])
if @software.update_attributes (params[:software_component])
flash[:notice] = ''Software was successfully updated.''
redirect_to :action => ''list_computers''
else
render :action =>...