mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06:43 +01:00
12 lines
326 B
Ruby
12 lines
326 B
Ruby
# frozen_string_literal: true
|
|
class StoriesController < ApplicationController
|
|
def index
|
|
end
|
|
|
|
def show
|
|
@story = Story.find(params[:id])
|
|
@chapters = @story.chapters.order(number: :asc)
|
|
@normal_tags = @story.tags.where.not(type: 'character')
|
|
@character_tags = @story.tags.where(type: 'character')
|
|
end
|
|
end
|