X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fcontrollers%2Fcomic_stories_controller.rb;fp=app%2Fcontrollers%2Fcomic_stories_controller.rb;h=a17f2d8ccded7a0018c1aabb55aa98588964dbcd;hp=bcc8df1f52f5344338673b6357dd4c729820456d;hb=f2201d3750a46b2ace05fef4c61eee3e6c9156f5;hpb=edbc93fdb22ec38554f2b3f4f69a23fd8a1fbd8c diff --git a/app/controllers/comic_stories_controller.rb b/app/controllers/comic_stories_controller.rb index bcc8df1f..a17f2d8c 100644 --- a/app/controllers/comic_stories_controller.rb +++ b/app/controllers/comic_stories_controller.rb @@ -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)