mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06:43 +01:00
10 lines
207 B
Ruby
10 lines
207 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)
|
|
end
|
|
end
|