- Book-styled UI with parchment aesthetic and Russian navigation - Characters model with Konva.js 2D canvas drawing (draggable shapes) - StoryPages model with character association and page navigation - Stimulus controllers: canvas (editor) + canvas-preview (read-only) - Full Russian interface: all labels, buttons, flash messages in Russian
10 lines
211 B
Ruby
10 lines
211 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BooksController < ApplicationController
|
|
def index
|
|
@pages = StoryPage.includes(:character).all
|
|
@characters = Character.all
|
|
@total_pages = @pages.count
|
|
end
|
|
end
|