-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
uninitialized constant Slim::RailsTemplate (NameError) #915
Comments
I can see that the initialization of Ref: Lines 4 to 5 in b7680ab
Probably the initializer should be edited accordingly (add an on_load block), as well as the readme
- Slim::RailsTemplate.set_options streaming: false
+ ActiveSupport.on_load(:action_view) do
+ Slim::RailsTemplate.set_options streaming: false
+ end |
@tagliala The above code does not work for me, since Line 15 in b7680ab
|
If you replace the initializer at
it doesn't work? What is the error? |
It does not. I get the same error |
I got it to work with the following in
|
After upgrading Slim 4.1.0 -> 5.1.0 on my Rails app, I get the following error from the config/initializers/slim.rb:3
Slim::RailsTemplate.set_options streaming: false
uninitialized constant Slim::RailsTemplate (NameError)
Removing the line gets rid of the error, but how can I disable http streaming with the new version?
The text was updated successfully, but these errors were encountered: