A corporation manager and dashboard for EVE Online
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

19 righe
439 B

  1. require 'calefaction/settings'
  2. class AdminController < ApplicationController
  3. def index
  4. end
  5. def update
  6. if params[:settings].is_a? Hash
  7. Calefaction::Settings.update(params[:settings])
  8. flash.now[:notice] = 'Admin settings updated.'
  9. else
  10. # TODO: can we make a better error message for this?
  11. flash.now[:alert] = 'Something is wrong with the settings you submitted.'
  12. end
  13. render 'index'
  14. end
  15. end