Comments (7)
It should works, I never had any issue on It. Have you configured your parent's model first ?
from rails_admin_theme.
I was suspicious at first regarding my own code, but then I just switched to default theme and it worked so I thought maybe it's a bug with theme. This is what I have in my config/initializers/rails_admin.rb which works with default theme:
config.model TemplateVersion do
parent Template
edit do
field :version
field :template
field :content, :ck_editor
field :active
field :language
end
end
from rails_admin_theme.
Can you show your Template
config please ?
from rails_admin_theme.
It's an open source project, You can check the whole config here:
https://github.com/DataRights/MAPPED/blob/develop/config/initializers/rails_admin.rb
I'm not doing any config on Template model. I tested adding an empty config as well, but that didn't help either.
config.model Template do
end
config.model User do
end
config.model TemplateVersion do
parent Template
edit do
field :version
field :template
field :content, :ck_editor
field :active
field :language
end
end
from rails_admin_theme.
Can you try with this:
config.model Template do
navigation_label 'Template'
end
from rails_admin_theme.
Very cool! It works great! Thanks a ton. Sorry to waste your time I thought 'navigation_label' is optional.
from rails_admin_theme.
You'r welcome, I guess I already had a similar issue. Don't worry, I'm happy to help, happy coding ;)
from rails_admin_theme.
Related Issues (12)
- When hovering checkbox, it hides. HOT 2
- lighten instead of ligten HOT 1
- How to avoid using Raleway font?
- support RTL
- where to put app/assets/javascripts/rails_admin/custom/ui.js in rails 6?
- Rails 7 support HOT 1
- To add better README.md HOT 4
- a.navbar-brand width: 100% problem HOT 7
- Smartphones layout not responsive HOT 4
- bold font not available HOT 1
- Odd behaviour with iPad size HOT 2
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 rails_admin_theme.