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)
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)