All pastes #383498 Raw Edit

Untitled

public ruby v1 · immutable
·published 2007-03-06 12:24 UTC
rendered paste body
  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