Method: DailyTablesController#archiveit

Defined in:
app/controllers/daily_tables_controller.rb

#archiveitObject



24
25
26
27
28
29
30
31
# File 'app/controllers/daily_tables_controller.rb', line 24

def archiveit
  if @daily_table.archive
    flash[:notice] = "Table has been archived."
  else
    flash[:alert] = "Table has not been archived."
  end
  redirect_to @daily_table
end