From 8e9ba56dab5e498c9090be257727620924c666a2 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 13:15:29 +0000 Subject: [PATCH 1/5] Mark the admin sample's migrate step as ActiveRecord and Sequel only The home page's admin terminal sample runs `padrino rake db:migrate`, which only ActiveRecord and Sequel projects define; `padrino g admin` lists that step only for those two ORMs, and a Mongoid project has no db:migrate task. A comment line before the step says so, in the same style as the sample's existing comment line. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JWpdhd1LepyfkNRGx9kwrD --- data/home.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/data/home.yml b/data/home.yml index 2bdb5e7d..d870e329 100644 --- a/data/home.yml +++ b/data/home.yml @@ -69,6 +69,7 @@ features: lang: shell code: | $ padrino g admin + # ActiveRecord and Sequel: $ padrino rake db:migrate $ padrino rake db:seed $ padrino g admin_page post From 9bf46a1a52670909e43137fde2fe7ac143aa2624 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 13:24:06 +0000 Subject: [PATCH 2/5] Name the step Mongoid skips instead of a header that reads as covering the rest Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JWpdhd1LepyfkNRGx9kwrD --- data/home.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/home.yml b/data/home.yml index d870e329..558aaccc 100644 --- a/data/home.yml +++ b/data/home.yml @@ -69,7 +69,7 @@ features: lang: shell code: | $ padrino g admin - # ActiveRecord and Sequel: + # Mongoid: skip db:migrate $ padrino rake db:migrate $ padrino rake db:seed $ padrino g admin_page post From e88ec704fedaa26d2ad25347d6be424ec17e651d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 16:47:06 +0000 Subject: [PATCH 3/5] Generate the Post model in the admin sample, and fit it at 320px The admin sample ran `padrino g admin_page post` on a project with no Post model, so the command failed. Generate the model first, before the migrate step, so its table is created with the accounts table. At viewports under 360px the sample's longest lines were 4px wider than the code window. Trim the code window's side padding there to 1rem. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JWpdhd1LepyfkNRGx9kwrD --- data/home.yml | 1 + source/assets/stylesheets/all.css | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/data/home.yml b/data/home.yml index 558aaccc..4b9385d3 100644 --- a/data/home.yml +++ b/data/home.yml @@ -69,6 +69,7 @@ features: lang: shell code: | $ padrino g admin + $ padrino g model post body:text # Mongoid: skip db:migrate $ padrino rake db:migrate $ padrino rake db:seed diff --git a/source/assets/stylesheets/all.css b/source/assets/stylesheets/all.css index d535a9ea..5f68f5f9 100644 --- a/source/assets/stylesheets/all.css +++ b/source/assets/stylesheets/all.css @@ -1680,6 +1680,13 @@ ul.post-list { outline-offset: -2px; } +@media (max-width: 359px) { + .code-window__file, + .code-window pre { + padding-inline: 1rem; + } +} + /* Sections */ .section { From 9ad061b2cdab110a1623f57a8e8e21b956f57888 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 16:47:06 +0000 Subject: [PATCH 4/5] Install the gems `padrino g admin` adds before the next command `padrino g admin` adds bcrypt and activesupport to the Gemfile and asks you to run `bundle`. Without it, the sample's next commands stop with Bundler::GemNotFound. Add the `bundle` step after it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JWpdhd1LepyfkNRGx9kwrD --- data/home.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/data/home.yml b/data/home.yml index 4b9385d3..aa98995f 100644 --- a/data/home.yml +++ b/data/home.yml @@ -69,6 +69,7 @@ features: lang: shell code: | $ padrino g admin + $ bundle $ padrino g model post body:text # Mongoid: skip db:migrate $ padrino rake db:migrate From 1844f96a7767acc5566c5fb0160cf76083172629 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 17:09:19 +0000 Subject: [PATCH 5/5] Admin sample: migrate before generating the Post model, then migrate again On Sequel, generating a model boots the project, which loads the Account model g admin wrote; before the first migrate its table doesn't exist and the generator prints a load error. This is the order the padrino-admin guide uses. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JWpdhd1LepyfkNRGx9kwrD --- data/home.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/home.yml b/data/home.yml index aa98995f..d885f367 100644 --- a/data/home.yml +++ b/data/home.yml @@ -70,10 +70,11 @@ features: code: | $ padrino g admin $ bundle - $ padrino g model post body:text # Mongoid: skip db:migrate $ padrino rake db:migrate $ padrino rake db:seed + $ padrino g model post body:text + $ padrino rake db:migrate $ padrino g admin_page post $ padrino start # => http://localhost:3000/admin