OSDN Git Service

user check
[pettanr/pettanr.git] / app / controllers / speach_templates_controller.rb
1 class SpeachTemplatesController < ApplicationController
2   before_filter :authenticate_user!, :only => [:index, :show]
3   before_filter :authenticate_admin!, :only => [:list, :browse]
4
5   # GET /speach_templates
6   # GET /speach_templates.json
7   def index
8     @speach_templates = SpeachTemplate.all
9
10     respond_to do |format|
11       format.html # index.html.erb
12       format.json { render json: @speach_templates }
13     end
14   end
15
16   def list
17     @speach_templates = SpeachTemplate.all
18
19     respond_to do |format|
20       format.html { render layout: 'system' }
21       format.json { render json: @speach_templates }
22     end
23   end
24
25 end