Class: Bagboy::DataBagTemplatesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Bagboy::DataBagTemplatesController
- Defined in:
- app/controllers/bagboy/data_bag_templates_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Constructor Details
This class inherits a constructor from Bagboy::ApplicationController
Instance Method Details
#edit ⇒ Object
12 13 14 |
# File 'app/controllers/bagboy/data_bag_templates_controller.rb', line 12 def edit render :edit end |
#show ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/bagboy/data_bag_templates_controller.rb', line 6 def show @bag = @bag_helper.data_bag( params[:bag] ) @template = Template::find_or_create_by({data_bag_name: @bag.name}) render :show end |