before_filter :authenticate_user, :only => []
end
before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
-
- def self.model
- SpeechBalloonTemplate
- end
def index
filer_list
def show_html_format format
format.html {
- @speech_balloon_template = @item
}
end
end
def destroy
- @speech_balloon_template = SpeechBalloonTemplate.find(params[:id])
- @speech_balloon_template.destroy
+ @item = SpeechBalloonTemplate.find(params[:id])
+ @item.destroy
respond_to do |format|
format.html { redirect_to :action => :list }