mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06:43 +01:00
7 lines
173 B
Ruby
7 lines
173 B
Ruby
|
class ChaptersController < ApplicationController
|
||
|
def show
|
||
|
@story = Story.find(params[:story_id])
|
||
|
@chapter = @story.chapters.find_by(number: params[:id])
|
||
|
end
|
||
|
end
|