foalfetch/app/controllers/stories_controller.rb

13 lines
326 B
Ruby
Raw Normal View History

2024-04-04 10:21:23 +02:00
# frozen_string_literal: true
class StoriesController < ApplicationController
def index
end
def show
@story = Story.find(params[:id])
@chapters = @story.chapters.order(number: :asc)
2024-04-14 02:59:15 +02:00
@normal_tags = @story.tags.where.not(type: 'character')
@character_tags = @story.tags.where(type: 'character')
end
end