OSDN Git Service

t#29673:fix op ctl test
[pettanr/pettanr.git] / app / controllers / speech_balloons_controller.rb
1 class SpeechBalloonsController < ApplicationController
2   before_filter :authenticate_admin!, :only => [:list, :browse]
3
4   def list
5     @speech_balloons = SpeechBalloon.all
6
7     respond_to do |format|
8       format.html { render layout: 'system' }
9       format.json { render json: @speech_balloons }
10     end
11   end
12
13   def browse
14     @speech_balloon = SpeechBalloon.find(params[:id])
15
16     respond_to do |format|
17       format.html { render layout: 'system' }
18       format.json { render json: @speech_balloon }
19     end
20   end
21
22 end