Comments (2)
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.
@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)
- Rails 6 support? HOT 7
- casein 5.4.0 authlogic HOT 1
- Webpack Rails 5
- Use UTC in views and basecamp/local_time to convert to usersβ local time HOT 5
- OmniAuth? HOT 1
- Override Casein templates HOT 1
- [calibration error] scrypt.rb:142:in `__sc_calibrate' HOT 1
- How can I generate admin users view HOT 3
- Rails 5? HOT 18
- Polymorphism HOT 1
- Using Bootsy WYSIWYG with Casein HOT 3
- how can I create an admin user in production env? HOT 1
- Possibility to use mongo db HOT 5
- Casein 5.2 - AdminUserSessions#new HOT 4
- has_many models within the form HOT 3
- Renaming the casein route HOT 1
- Redirecting to localhost HOT 5
- Glyphicons not working HOT 1
- Requirement of another ruby version HOT 2
- SQLite deprecation message when run rspec HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casein.