def edit @Profile = Profile.find(params[:id]) end def update @Profile = Profile.find(params[:id]) if @Profile.update_attributes(params[:Profile]) redirect_to :action => 'show', :id => @Profile else render :action => 'edit' end end