Someone
public ruby v1 · immutable def edit @registrar = Registrar.find(params[:id]) @address = Registrar.find(params[:id]).address(:first) @countries = Country.find(:all) end def update @registrar = Registrar.find(params[:id]) if @registrar.update_attributes(params[:registrar]) flash[:notice] = 'Registrar was successfully updated.' redirect_to :action => 'show', :id => @registrar else render :action => 'edit' end end