Sharing partial with the "main" app?
- Dominant language
- Ruby
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
I've "Integrated Toto and a Rails app in 10 steps" sucessfully, and I manage to use shared assets (js, css and the like).
BUT I struggle to use partials from my main app within the Toto layout template (render partial fails with an argument error, "1 for 2").
Is there a good / recommended way to share layout and partials between the main Rails app and an integrated Toto blog?
My objective is to not replicate the template code of the main application for using it in the Toto blog.
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start by reviewing the Rails/Toto integration described in the issue and the layout partial-rendering entry point, then reproduce the reported “1 for 2” argument error. Done means the Toto blog can reuse the main Rails app’s layout and partials without duplicating template code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100