Giter Site home page Giter Site logo

Comments (2)

russellquinn avatar russellquinn commented on June 18, 2024

The short answer is: it doesn't really.

The more involved answer: I use it for a lot of 0..n relationships though, but each time is kinda different. The most common is that one model's Show page will list all the has_manys at the bottom, right? For that, I generate the Casein scaffolding for the has_many model and use the --no-index option (this makes all the form partials, but not an index page and won't add it to the tab navigation). Then I can just show the table partial in the parent's show page.

So there are ways to have Casein save you time, but ultimately it needs some manual coding to get it how you want it.

If you have suggestions for a useful and generic way for it to handle these relationships in a better way, then let me know. But, generally, Casein is a programmer's toolkit, giving you the CMS basics but still requiring you to set up your views and forms in code. This is what makes it different from other CMS systems, for better and worse.

from casein.

zachrnolan avatar zachrnolan commented on June 18, 2024

@russellquinn Do you have any example code on how to do this? I'm trying to add a render to the show page and it keeps giving me errors. It would be nice to see how this is done in the code. Thanks!

from casein.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.