A corporation manager and dashboard for EVE Online
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

19 行
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