created template selecting

This commit is contained in:
Senad Uka
2016-02-21 11:59:13 +01:00
parent 7af44a6245
commit 709ce3e38c
46 changed files with 584 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
class ConfigurationFilesController < ApplicationController
before_filter :selected_server, only: [:new, :edit]
active_scaffold :"configuration_file" do |conf|
conf.columns[:file_type].form_ui = :select
end
def selected_server
@server = Server.find(params[:server_id])
@templates = ConfigurationTemplate.order(:name).all
end
def create_from_template
template = ConfigurationTemplate.find(params[:template_id])
end
end