OSDN Git Service

add comic story
[pettanr/pettanr.git] / app / controllers / comic_stories_controller.rb
index bcc8df1..a17f2d8 100644 (file)
@@ -73,7 +73,7 @@ class ComicStoriesController < ApplicationController
     respond_to do |format|
       if @comic_story.store @operators
         flash[:notice] = I18n.t('flash.notice.created', :model => ComicStory.model_name.human)
-        format.html { redirect_to play_comic_path(@comic) }
+        format.html { redirect_to comic_path(@comic) }
         format.json { render json: @comic_story.comic_story_as_json(@operators.author) }
       else
         flash[:notice] = I18n.t('flash.notice.not_created', :model => ComicStory.model_name.human)
@@ -92,7 +92,7 @@ class ComicStoriesController < ApplicationController
     respond_to do |format|
       if @comic_story.store @operators, ot
         flash[:notice] = I18n.t('flash.notice.updated', :model => ComicStory.model_name.human)
-        format.html { redirect_to play_comic_path(@comic) }
+        format.html { redirect_to comic_path(@comic) }
         format.json { head :ok }
       else
         flash[:notice] = I18n.t('flash.notice.not_updated', :model => ComicStory.model_name.human)