Class: PresentationTemplatesController
- Inherits:
-
BaseJsonController
- Object
- ActionController::Base
- ApplicationController
- BaseJsonController
- PresentationTemplatesController
- Defined in:
- app/controllers/presentation_templates_controller.rb
Instance Method Summary (collapse)
Methods inherited from BaseJsonController
#create, #destroy, #show, #update
Instance Method Details
- (Object) index
18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/presentation_templates_controller.rb', line 18 def index begin @initiative = Initiative.find params[:initiative_id] rescue ActiveRecord::RecordNotFound => e flash[:notice] = "Please select an Initiative." respond_to do |format| format.html{ redirect_to initiatives_path and return } format.json{ render :json => PresentationTemplate.all } end end end |