Method: EngineRoom::ModelsController#check_model_name
- Defined in:
- app/controllers/engine_room/models_controller.rb
#check_model_name ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/engine_room/models_controller.rb', line 13 def check_model_name @modelname = params[:modelname] begin @model = get_model(@modelname) rescue NameError flash[:error] = "No model with given name was found!" redirect_to :action => :overview end end |