foalfetch/app/controllers/stories_controller.rb
2024-04-13 20:59:15 -04:00

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