-
- # POST /speech_balloon_templates
- # POST /speech_balloon_templates.json
- def create
- @speech_balloon_template = SpeechBalloonTemplate.new(params[:speech_balloon_template])
- if em = validate_param(params[:speech_balloon_template])
- respond_to do |format|
- format.json { render json: em, status: :unprocessable_entity }
- end
- else
- respond_to do |format|
- if @speech_balloon_template.save
- format.html { redirect_to @speech_balloon_template, notice: 'Speech balloon was successfully created.' }
- format.json { render json: @speech_balloon_template, status: :created, location: @speech_balloon_template }
- else
- format.html { render action: "new" }
- format.json { render json: @speech_balloon_template.errors, status: :unprocessable_entity }
- end
- end
- end