Comments (2)
Hi there,
once you have a setup for the model to store store views, you might want to use the path
field and, for example, store the user id of a specific view. Then you might use prepend_view_path TemplateStorage.resolver(:only => current_user.id)
to search in virtual paths which have the user id prefix.
If you check the source code of this gem and/or check how rails templating works, you might find better solutions. Unfortunately, I'm not using rails since years, I'm just maintaining this gem to keep it working with newer versions of rails.
from panoramic.
OK, thanks for your comments. There is also the "additional_criteria" that can be added per render, although that seems like I'd have to add it to every render call on the site, which is a bit clunky. Your idea seems better.
from panoramic.
Related Issues (18)
- Minor Documentation glitch HOT 1
- Rails dependency HOT 7
- Add support for Travis CI HOT 2
- Using "themes" (feature request or question how to do that) HOT 1
- Template errors raise ActionView::MissingTemplate HOT 1
- Is there a chance to intercept and store existing views in db automatically HOT 1
- Some Help? HOT 1
- Changes in views in database are ignored in production until Rails is restarted HOT 13
- Gem release HOT 1
- how to ignore locale? HOT 1
- Is there a way to have multiple formats without duplicating record HOT 4
- Support for Rails 5
- [bug] assure format is a symbol HOT 2
- Scoping templates by theme in a CMS HOT 1
- rails 6.1 ArgumentError missing keyword: locals HOT 4
- Is this repo still maintained? HOT 2
- How to query templates table within mailer ? HOT 1
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 panoramic.