Changeset 213

Show
Ignore:
Timestamp:
08/03/08 23:08:42 (4 months ago)
Author:
pwh
Message:
  • Site Admin: Replaced references to 'hostname' with 'description', as we'd copied the code from elsewhere and forgotten to test it...
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nethorus/app/controllers/site_admin_controller.rb

    r168 r213  
    6464      if @site.save 
    6565 
    66         flash[:info] = "Created a new site record for <strong>#{@site.hostname}</strong>" 
     66        flash[:info] = "Created a new site record for <strong>#{@site.description}</strong>" 
    6767        redirect_to :action => 'index' 
    6868 
     
    7171        # Trap the case where the site did not save properly 
    7272         
    73         flash[:info] = "There was a problem saving the new site <strong>#{@site.hostname}</strong>" 
     73        flash[:info] = "There was a problem saving the new site <strong>#{@site.description}</strong>" 
    7474        render :action => 'edit' 
    7575 
     
    131131          logger.debug "Site id=#{@site.id} changed - saving record" 
    132132          @site.save 
    133           flash[:info] = "Updated <strong>#{@site.hostname}</strong>" 
     133          flash[:info] = "Updated <strong>#{@site.description}</strong>" 
    134134 
    135135        else 
     
    174174    if @site 
    175175      @site.destroy 
    176       flash[:notice] = "Deleted site <strong>#{@site.hostname}</strong>" 
     176      flash[:notice] = "Deleted site <strong>#{@site.description}</strong>" 
    177177    end 
    178178