1 class SpeachTemplatesController < ApplicationController
2 before_filter :authenticate_user!, :only => [:index, :show]
3 before_filter :authenticate_admin!, :only => [:list, :browse]
5 # GET /speach_templates
6 # GET /speach_templates.json
8 @speach_templates = SpeachTemplate.all
10 respond_to do |format|
11 format.html # index.html.erb
12 format.json { render json: @speach_templates }
17 @speach_templates = SpeachTemplate.all
19 respond_to do |format|
20 format.html { render layout: 'system' }
21 format.json { render json: @speach_templates }