Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 6 configuration #60

Open
hunter298 opened this issue Jul 10, 2020 · 1 comment
Open

Rails 6 configuration #60

hunter298 opened this issue Jul 10, 2020 · 1 comment

Comments

@hunter298
Copy link

Hi,
trying to implement SKIM in my rails 6 project. Can't figure out, where should I put .jst.skim files or how correctly render them.
Tried to create javascript/templates folder and store files there, calling them with JST["templates/file"]({data: data}), but caught ReferenceError: JST is not defined.
Requiring them form application.js like require "templates/file" or require "templates/file.jst.skim" also failed.
Are there any settled sollution for rails 6?

@padraicm
Copy link

It looks like the fix for sprockets 4 does not work well if you are still on sprockets 3.7, so you can get this working by reverting to skim 0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants